android data storage question
<p>Hello I would like to know if it is possible to for some application other my own to change a preference value of my application.Also are the preferences been kept by android when the phone is turned off?</p>

<p>is it safe to store some data(flags) on sharedpreferences in order to notify an activity for something?</p>

<p>when user clears the application data what exactly  is erased,shared preferences data?</p>

<p>is it prefered to use an internal private file to store secure data? such ass passwords?</p>

<p>also I would like to be able to show a dialog when I detect a certain behavior, for this I have a monitoring service that has to notify the main activity about that. currently this is done through a  callback method but I would like to maintain that state even if the application is killed or the phone reboots.</p>

<p>so I thought of setting a sharedpreference value (flag) and then on the oncreate method check if that flag exists. Also should I also check on the resume method?</p>

<p>Thanks a lot and sorry for the amount of questions but I am a little confused.
regards maxsap </p>
