0

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 read that text? or can I store a .txt and have android convert that to a string? Thanks

Cody
  • 25
  • 1
  • 5

1 Answers1

0

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.

Community
  • 1
  • 1
Brian O'Dell
  • 3,029
  • 1
  • 20
  • 23