WordPress to Android App using JSON API Tutorial


The Android App which you will develop using this tutorial will be work for fetching your WordPress website data (posts & pages) to the android layout. Alternative like web view in android uses to display your website pages as it is in android app. The difference between web view and actual android app using JSON is that in web view the original website is opened like it is open in the mobile browser. But in Android app using JSON the data of the website will be fetch from the MySQL database and displayed on Android App layouts.

WordPress Website Android App using JSON

As the website took too many seconds for loading, this problem will be solved in Android App, App will be dedicated to a specific website only benefiting the users to enjoy each and every content of your website in App format. Notification will help you to connect with users directly and anytime – no matter whether they are active on App or not.

So in WordPress to Android App using JSON API Tutorial, I will explain to you how to create an Android App for your WordPress website. For that, you need a WordPress website and another tool which we regularly used for developing the android app.

WordPress JSON plugin

Step.1> You need to have a plugin in your WordPress website which will convert your WordPress data from MySQL database in JSON format.

Step.2> Install Jetpack or WP REST API plugin from WordPress plugin dashboard and activate it. (To know, Read it: How to Install and Activate WordPress Plugin)

Step.3> Now this plugin will give WordPress website output in JSON format through URL like YOUR WEBSITE DOMAIN/posts/ See output below.



Now we will use this URL in our android java file, lets start creating the android app for WordPress Website.

How to Make Android App for WordPress Website

Tighten your seat belts we are moving to the world of coding. Now start your android studio and as usual, create an Android App project with name BUZZMYCODE.

Creating WordPress Android App Project

We need the following dependencies to be added in our app level build.gradle file.

Add internet access permission by adding following line in AndroidManifest.xml file.

Ok, now we will create a layout in which the website post Title will be displayed. we will create a ListView in our activity_main.xml. In the ListView we will show all the latest post fetched from the REST API or Jetpack JSON API.

Ok, when anyone clicks on title then it should show the content of the post for that we will create a new layout. Create a new file named post.xml inside your layout directory and write the following code.

Here we will start coding our java files, as usual,letlet’sstart with


For specific post display we will create a new java file name

Now you can run your application. Just make sure that you have changed the URLs with your own blog and installed the REST API plugin or Jetpack JSON API plugin correctly.

Following are the output of App created by me, you can also install my app from Google Play Store. Here is the link Buzzmycode android app.
List of posts on Android App for WordPress Website

WordPress website Android App tutorial

WordPress website Android App tutorial

Output for Specific Post on WordPress Android App

WordPress Website Android App

WordPress Website Android App

If you have any doubts about WordPress to Android App Tutorial then please ask me in a comment box, you will exact answer with the complete solution.



  1. Tú Lê Blogger

    April 10, 2017 at 10:42 pm

    Hello bro i have create sample demo with your tutorial, you can help me how to load img future post like your app. tks bro

  2. Pingback: copie bijoux cartier femme

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular

Buzzing your life from assorted Coding,tips and general life opinion. Made your life Buzz by BuzzMyCode articles, share with world.

What is Buzzmycode, we had started this website to give tech savy the new way of life by reading our fresh organic content on every technology and applications.

Copyright © 2017 SyncSaS. Theme by SyncSaS Themes, powered by BuzzMyCode.

To Top