I need to read a json file from the SD card and display the data in the spinner. Is there any way to read the data from file in Android and display the contents of that file in spinner?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First read the file from SD card and then parse that file
Step-1
Retrieve the data from file from SD card. see tutorial
Step-2
Parse the data. See How to parse JSON String
Sample code