curiouswebster
asked on
How do I get an XML file onto an iPhone or Android?
I am planning on writing an app for the iPhone and Android and need to make it read data from XML. I want to make is simple to transfer the XML files from phone to phone. And from computer to phone.
How do I do this?
Thanks.
How do I do this?
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
> Whenever you need to reference the XML file, instead of using "file://" as the URI, use "http://". That way your program (be it Android or iPhone), will download the file from the internet instead of fetching it locally.
How would my program on the iPhone know the files exists? Plus, I want the file to reside locally on the iPhone.
How would the iPhone app know to download the file, if it were created on the server?
Is the following a solution?
1) Allow the iPhone user to register online (via the web), and update my iPhone app with the login information.
2) Have a dedicated folder on the server for each registered user, containing each of the XML files creatwed by that user.
3) When a registered user starts the iPhone app, it synchronizes the folder on the server with the local XML folder (for my app) on the phone.
How would my program on the iPhone know the files exists? Plus, I want the file to reside locally on the iPhone.
How would the iPhone app know to download the file, if it were created on the server?
Is the following a solution?
1) Allow the iPhone user to register online (via the web), and update my iPhone app with the login information.
2) Have a dedicated folder on the server for each registered user, containing each of the XML files creatwed by that user.
3) When a registered user starts the iPhone app, it synchronizes the folder on the server with the local XML folder (for my app) on the phone.
Hi. Sorry for my delay.
I know nothing about iOS development, so I can't help you with questions regarding iPhone.
OTOH, on the Android, there is a File.Exists() function.
I know nothing about iOS development, so I can't help you with questions regarding iPhone.
OTOH, on the Android, there is a File.Exists() function.
ASKER
Thanks.
ASKER
What is ADB?
I like the sound of Cloud Services. I will check that out.
I also would like to investigate making the transfer from my iPhone/Android application so the XML is sent to another iPhone/Android running the application. How might that work?
Lastly, how about if the XML is created on my website, and needs to be transferred to their iPhone?
Thanks.