开发者

calling xml to Android

I have lis开发者_开发知识库t of records in xml format from my local host "http:localhost:810/Service1.svc/leb/GetAllCustomers"

Can I call this to android and list it in Textview or Spinner or in EditTextView or in any of the controls in android?


You should parse this xml file using SAX parse or Dom Parse in android and collect date in arrays/list/map according to your requirement here i am post some link to you get more information form there and get your ASAP.

http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser

http://www.androidpeople.com/android-xml-parsing-tutorial-%E2%80%93-using-domparser

I hope this is very helpful to you.


Some links here for you.

1) Multithreading for Performance

to help you understand, how to download a file (example shows downloading an image) via AsyncTask.

2) Working with XML in Android

to help you parse your xml. Check these out. Good luck!


Yes you can do that.

Use Intent which takes URL as an argument.

In the URL you can mention the location/URI of your source.

Then, you can parse it to a string and store it.

Later, use ArrayAdapter to populate.

I can get you code if this is what you are trying to do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜