Android TutorialsNo Comments

Andrologo.png
1666 views.

Here i want to display list view and the items are in list those are loaded from server. Before starting this program just concentrate on Json (API).

URL: http://androindian.com/apps/blog_links/api.php

Req: {“action”:”get_all_links”}

Res Success : {“response”:”success”,”results”:2,”data”:[{“id”:”1″,”title”:”android-activity-life-cycle”,”url”:”http:\/\/rajandroindian.blogspot.in\/2015\/08\/android-activity-life-cycle.html”},{“id”:”2″,”title”:”android-interview-questions”,”url”:”http:\/\/rajandroindian.blogspot.in\/2015\/08\/android-interview-questions.html”}]}

Res empty : {“response”:”success”,”results”:0,”data”:[]}
Res Failed : {“response”:”failed”}

activitymain.xml

ActivityMain.java

custom.xml

ProgamDisplay.java

display_program.java

JsonFunction.java

androidmanifest.xml

Output:

li1 li3 li2

Be the first to post a comment.

Add a comment