tags:

views:

40

answers:

2

Hi guys, i have an andrid application. i need to install in diffferent devices with different configuration. i kept it in res/raw folder. the data in that file is like (key=value). Can i access the value by passing the key?? can i change the .properties file from outside the application???

A: 

After the application is compiled, you can not alter the resources. That would require you to decompile the app, modify the resource then recompile it; not worth the hassle. Also, the default.properties file ain't exists in the .apk

methode
A: 

I'd go with SharedPreferences. You can predefine a SharedPreference file and ship your application with it. You just need to implement a way to alter those preferences to your desired extent.

It is a XML file using key:value pairs.

Octavian Damiean
@Octavian, i have created the sharedpreference and stored and received the data from it... but i couldn't find the file folder to edit it from outside the application
asifkt