I am stuck,i have a json text file in Sd Card and i need to read a json file from the SD card and display the data in to my textview.
This is my json textfile name is textarabics.json:
{
"data": [
{
"id": "1",
"title": "Farhan Shah",
"duration": 10,
},
{
"id": "2",
"title": "Noman Shah",
"duration": 10,
},
{
"id": "3",
"title": "Ahmad Shah",
"duration": 8,
},
{
"id": "4",
"title": "Mohsin Shah",
"duration": 10,
},
{
"id": "5",
"title": "Haris Shah",
"duration": 5,
}
]
}
I want to display the "title" into my textview,and the "duration" is the number of secondes,for example when 1st "title" display into my textview,then it will be visibl on the screen for 10seconds,after that second text display for x seconds and so on.in my xml file i have a just one textview.any idear and help will be much much appreciated..Thanks for ur Valuable Replies in advance.