Reputation: 1622
When my server gaves apk file to user, I need to put some values In this file, for j2me platform I use JAD file, and put my values there:
MY_KEY: SomeKeyValue
MY_KEY2: SomeKeyValue2
When j2me application starts on device, I can access this values through System.getProperty.
How can I do the same on android platform?
Upvotes: 0
Views: 901
Reputation: 1007534
How can I do the same on android platform?
You cannot "do the same on android platform" for applications distributed through the Android Market. An APK file is digitally signed and cannot be modified once signed and uploaded to the Market.
You mention "When my server gaves apk file to user", suggesting you are not using the Market. In that case, when the user requests the APK:
res/xml/
) with the data you want for the userI do not know of anyone doing this, so I cannot point you to any code that implements the technique.
Upvotes: 4