I am making an application that makes use of Google Cloud Messaging. I would like to make it so I can retrieve a string “SERVER_URL” from an XML file, and be able to modify this string without reinstalling the application.
Such that;
The user takes their memory card out of the phone, puts it in their computer, they can now navigate through that memory card to find the XML file and modify the string SERVER_URL.
..After doing some research I am not certain I can access any XML data on an installed Android app without doing some kind of decompiling(I can’t find anything readable on the memory card either). My original intent was to put this value simply inside ‘strings.xml’ of the android application. Any help on how to do so would be much appreciated, even if it is just for sure known that what I am trying to do is actually for sure not possible.
Why do I want it this way ?
This SERVER_URL value has potential to change(pilot project, things keep being moved), resulting in the app needing to be modified and reinstalled on all phones. We would like to avoid having to do this and instead just modify that file.
We do not, however, want to add functionality to the application to allow you to change SERVER_URL within the application itself, so that the user cannot so easily accidentally change this value if they are playing around with the phone(Mentally challenged users, caretakers would do the file modifying).
Thanks,
Wes
note: this is my first post on this site!
This is my first answer on this site!
Well, what you trying to do is to have configuration values out of the box. Since the application is about using internet resources, why don’t you create a web service/site in which the caretakers can make the changes when necessary and your application can consume that value(s) on connection time.
So, the address of the server could change by version and all things done are transparent for the users.
Hope this help