android - loading json in expandable list view with scroll <p>i have an application that download's and save the Json database to Storage .</p> <p>i should to view the Json objects in Expandable List View and i have a lot of theme so i must have a scroller too !</p> <p>i want to know how to parse the Json and load it in array , then use the array for making the Expandable List View ?</p> <pre><code>try { URL url = new URL(gURL); HttpURLConnection c = (HttpURLConnection) url.openConnection(); c.setRequestMethod("GET"); c.setDoOutput(true); c.connect(); String PATH = Environment.getExternalStorageDirectory() + "/H3S/DB"; File file = new File(PATH); String fileName = fName; File outputFile = new File(file, fileName); FileOutputStream fos = new FileOutputStream(outputFile); InputStream is = c.getInputStream(); byte[] buffer = new byte[1024]; int len1 = 0; while ((len1 = is.read(buffer)) != -1) { fos.write(buffer, 0, len1); } fos.close(); is.close(); </code></pre> <p>and this is sample json response : (sorry the json language is persian and the titles won't be shown because of they are not UTF-8) :</p> <pre><code>{ "DBVersion":"4" , "Groups":[ { "Id" : 1, "title" : "Ú©Ø§Ù…Ù¾ÛŒÙˆØªØ±", "bg" : "1.png" }, { "Id" : 2, "title" : "Ø´ÛŒÙ…ÛŒ", "bg" : "2.png" }, { "Id" : 3, "title" : "Ø¨Ø±Ù‚ Ùˆ Ø§Ù„Ú©ØªØ±ÙˆÙ†ÛŒÚ©", "bg" : "3.png" }, { "Id" : 4, "title" : "ÙÛŒØ²ÛŒÚ©", "bg" : "4.png" }, { "Id" : 5, "title" : "Ø±ÛŒØ§Ø¶ÛŒ", "bg" : "5.png" }, { "Id" : 6, "title" : "Ù…Ú©Ø§Ù†ÛŒÚ© Ùˆ Ù‡ÙˆØ§ÙØ¶Ø§", "bg" : "6.png" }, { "Id" : 7, "title" : "Ø²ÛŒØ³Øª", "bg" : "7.png" } ] } </code></pre> <p>im an iOS Developer and i successfully do this in iOS with Grouped Style UITableView but i don't know how can i do this simply in android !</p>