How i save data from PHP to android persistently?
example: i want all string in www.google.com saved in parameter textstring, and i use it..
How i save data from PHP to android persistently?
example: i want all string in www.google.com saved in parameter textstring, and i use it..
Copyright © 2021 Jogjafile Inc.
Use HttpClient. Then, with your InputStream, check this link:
http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
And write it to the file you want.
A quick and dirty example:
You may also want to buffer your reading and writing code.
Another method would be using:
It's up to you. I like HttpClient 'cos you can handle more things.