Android how to store a "string" on a webpage?
So I want to store a string on my website and then have my app download it, so I could use it in a layout. How could I do that? I there a way I can take html files and have android 开发者_StackOverflowread that text? or can I store a .txt and have android convert that to a string? Thanks
If I understand you correctly, you could just put the string inside of a file that your web server will serve up for you (maybe omit the extension altogether). You can then download it from an android app using the file's url.
It seems like you might want to look into JSON, it will facilitate storing structured data instead of just a string.
Here is an example of downloading a url from an Android program.
精彩评论