How to read JSON from assets in android?

Very easy to do this.

First, store your JSON file in “assets” folder of your project.

in this example, i use the JSON file with the content like below:

2016-06-20_23-47-03.gif

Next, see code snippet below, try to read and understand how it work:

2016-06-20_23-48-58

That’s all i want to show you guys in this post.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s