Thanks all for the response.

Most of you have asked, why not delete the data / root the device
etc.

The answer is,
1) Devices are corporate devices. If rooted warranty is void.
2) App is to enforce the native security available on the device from
2.2 OS. While we do download secure data from our server, the server
is not guaranteed to be in touch with device always since device could
be out of service range etc for long periods of time. so we need some
data be on the device to ensure the device is secure.
3) Can't rely on SD card since people can take the card out and not
put back in.

After all the we ask the user before installing the software, "do you
allow the app be the Admin of your device with corporate policy". When
they say yeah, at least we should have some private space to protect
their device from accidental deletes, kills, lost property etc.? :)

Well, we will have to find an ugh way to do this I guess :)

Thx
- jacob


On Apr 11, 11:41 am, Mark Murphy <[email protected]> wrote:
> On Mon, Apr 11, 2011 at 11:57 AM, Jacob <[email protected]> wrote:
> > I need to keep my data on the device until
> > the app is "uninstalled".
>
> Please treat your users with respect. It is their device, not yours.
> If they wish to clear the data, that is their choice.
>
> If you have data that you do not want them to clear, don't put it on
> the device. Access it from the Internet instead.
>
> > My app is not meant to
> > be on rooted devices.
>
> Your users can and will root their phones, if they so choose.
>
> > Note: I saw the /data/data/'my app package'/lib directory is not being
> > deleted using the "clear data" option. But I couldn't programatically
> > write to this direcroty. I get permission denied. Is there a way to
> > use this directory to store my data?
>
> I doubt it.
>
> > Is there a way to use NDK (not
> > worked on it yet) to keep the data safe?
>
> I doubt it.
>
> > Is there a way to keep the
> > data in application reosurce or something like a DLL resource in
> > Windows programing.
>
> You can package whatever data you want with your APK (e.g., assets/),
> and that data cannot be removed except by uninstalling, but that is
> not modifiable at runtime.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to