Skip to content

An android clone showing basic instagram features backed by cloudboost

Notifications You must be signed in to change notification settings

CloudBoost/InstagramCloneAndroid

Repository files navigation

#InstagramCloneMaster #####In this section In this tutorial, we are going to build a clone for Instagram photosharing app, a widely used social networking app for telling a story in pictures.

 

instagram android Clone

 

>Info By the end of this tutorial, you will have learnt abit how to deal with files on CloudBoost using CloudFiles and also ACL permission management. #Assumptions I will assume that :
  • You have checked out our first java tutorial in this series and know you to set up your environment to develop CloudBoost apps, including the libraries to add to the classpath i.e.
    • Javasdk for cloudboost Javasdk-1.0.1.jar
    • Socket-client.jar
    • Okhttp-2.4.0.jar
    • Okhttp-ws-2.4.0.jar
    • Okio-1.4.0.jar
  • You know android (We shall not focus so much on learning the the android specific concepts bit of the code).
  • You already have an app on cloudboost, and have created a table called users, with the following columns
    • user_name, type text
    • follows, type StringArray
    • followed_by, type StringArray
    • photos, type fileArray
#The Android project Create a new android project in your IDE(I use Eclipse 3.7 with ADT) and name it WhatsappAndroidClone, place all the required jar's in the libs folder.

We are going to use facebook to login and get user's friend details and images so that we have enough data and images to play around with.

#How it works ##Facebook Login## We use facebook SDK to login to facebook and fetch user profile in form of a json, we then sign the user up on our app as a CloudUser

 

Facebook login

 

##Images## We get image URLs from the Facebook Graph profile and download them into blobs. We then create CloudFile objects out of these blobs and save them to our app. ##Very simple##, no need to again write the bytes to some location on the server, we don't need to know where our files go. ##Displaying Images##

 

instagram android Clone

 

We shall use android GridView to display images anonymously in the search dock of instagram lower navigation, in the photos tab. These images can be downloaded from the URLs of our stored images on cloudboost. These url's come with the CloudObject you fetch for each user, in form of an array in the photos column. ##Friends## In instagram as we all know, you can follow people, in which case you will be alerted about their activities. People can also follow you and be notified of these When people follow us, we update their following column and our followed_by column. We then grant them read ACL permission to our images. The user retains read,write ACL permission.

 

Whatsapp android chats

 

>Info This is by no means a complete, usable application, it's just used to show basic functions on cloudboost. We shall be adding more functionality to it with time.

About

An android clone showing basic instagram features backed by cloudboost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages