Android Use Xmlpullparser Parse Xml From Url
I use Xmlpullparser to parse xml from Asset folder this is code public class FragmentImg extends Fragment { static final String KEY_EMP = 'emp'; static final String KEY_NAME = 'nam
Solution 1:
Try like this
URL url=new URL("https://www.dropbox.com/s/lh2ucpbvpqloa3e/list_img.xml");
HttpURLConnection http=(HttpURLConnection)url.openConnection();
http.setDoInput(true);
http.connect();
InputStream is=http.getInputStream();
After that you can assign inputstream to setData() function
parser.setInput(is, null);
And rest of the code you already written
Post a Comment for "Android Use Xmlpullparser Parse Xml From Url"