**** Meme Generator App ****


We all know how to pass time, when we feel bored. But, ever thought to create something that will help others to pass time.😀

So, here a Meme app, where u can get unlimited memes and you can share it with anyone. 

Here, I will help you to build a Meme generator app.

Sounds cool ? yeah !!😁



First, lets discuss what all features we are going to implement.

1.  Getting a meme generating Api from the reddit.

2. Volley library to read JSON (JavaScript Object Notation) file and 

Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster.

3. Glide library  to convert image URL to Bitmap format and set to our ImageView.

4. ImageView for the image and buttons to share our meme and get another meme.


Now, take a deep breath and deep dive to implementation part :


TO-DO :

1. Create new project.

2. Add permission in Manifest file.

3. Get the API key and dependencies for Volley and Glide.

4. Work on UI and Activity.

5. Refer to my Github Repo.



NOW, Get ready with your Android Studio and follow these steps :

1. Add Internet permission in Manifest file 

Go to app -> src -> main -> AndroidManifest.xml.




2.  Get the meme Api from Reddit.

JSON API for a random meme scraped from reddit.
3.  Get the Dependencies.

   For Glide: 


For Volley: 



To add a dependency to your project, specify a dependency configuration such as implementation in the dependencies block of your build.gradle file.





3.  Work on UI : 

Lets go to project > Android > app > res > layout > activity_main_layout.xml

Delete TextView 
Add ImageView and two buttons as shown below : 




Woahh that a wonderful layout.😇

Now refer my github repo for the UI XML file to get clarifications : 



3.  Work on Activity :
    

Refer my Github repo for the Activity work :

     

Finally our app will look like this : 



Kudos Folks 🥳 ! you have built an amazing app .

 


Comments

Popular posts from this blog

Creating a TrackMe App