[android-developers] Re: Forward Locking A Specific Downloaded File

2009-09-08 Thread BrianS
So would the the private directory you refer to be called data/data/ com.myapp/private/ ? thanks much B On Sep 7, 6:30 pm, Dianne Hackborn hack...@android.com wrote: Putting it in your normal private directory is exactly the same as forward locking -- only your uid (and root) has permission

[android-developers] Re: Forward Locking A Specific Downloaded File

2009-09-08 Thread Dianne Hackborn
It's everything under data (that you haven't explicitly made world accessible). That is, use the Context API to either directly open a file, or get a path to a directory where you can use the standard Java APIs to read and write files, and just put your data there. If you don't use the flag to

[android-developers] Re: Forward Locking A Specific Downloaded File

2009-09-08 Thread BrianS
Last question-- so by downloading and storing a file in a subdirectory under /data would copy-protect the file in the same way an APK is copy- protected if it is installed with the PackageManager with FORWARD_LOCK enabled? thanks much for your help. B On Sep 8, 9:58 am, Dianne Hackborn

[android-developers] Re: Forward Locking A Specific Downloaded File

2009-09-08 Thread Dianne Hackborn
Yes. In one of -your- sub-directories under there (as retrieved by Context), and without global read/write access (the default). On Tue, Sep 8, 2009 at 11:22 AM, BrianS bnsaw...@aol.com wrote: Last question-- so by downloading and storing a file in a subdirectory under /data would

[android-developers] Re: Forward Locking A Specific Downloaded File

2009-09-07 Thread Dianne Hackborn
Putting it in your normal private directory is exactly the same as forward locking -- only your uid (and root) has permission to read it. On Sun, Sep 6, 2009 at 8:48 AM, BrianS bnsaw...@aol.com wrote: Is there a way to forward lock a specific film that my code downloads to the android (like a