Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to retrieve or get next item from json file when press click button listner

ahmedsaahmedsa Member Posts: 13

Hi
I make one app have only one activity is main activity and it have
button
textview
linear layout
the json file i connect to it is
Hide Copy Code
public static String URL_GET_Place = "https://api.foursquare.com/v2/venues/search?client_id=SVIBXYYXOEARXHDI4FWAHXGO5ZXOY204TCF1QJFXQLY5FPV4&client_secret=BAAJO1KXRWESGTJJGVON4W3WUFHAQDAJPLRIYJJ5OPHFQ5VI&v=20130815&ll=30.1136286,31.3280148&query=resturant";
what i need is get all items from this file item by item
based on three atributes and every click get next item
name,id,location
when i press the fab button to first time get first item
when i press the fab button to second time get second item
when i press the fab button to third time get third item
when i press the fab button to four time get four item
until i get all items in json file based on three attributs id,name,location
How i make that by code if possible help me
and source code i need to customize it attached with message
my code show only three items from json file
i need to customize it to show every click one item

Tagged:
Sign In or Register to comment.