ehhh ... they are sample files that the user is allowed to edit. i was trying to keep track of things, like when the user edits an asset file, copy it to the sdcard and ignore the asset file from then on ... and doing something like when the user removes the file, mark it removed by adding a *-removed file to the SD card. all of that was getting confusing. it's much simpler if i can just assume one location for file where i know they can be edited without having to worry about this r/o file mirror in another place.

as suggested, i just have some code in onCreate() that copies the assets to the SD card, if they don't exist there already. simple and easy. i was over complicating things by trying to listen for app installation.

On 10/28/09 4:12 PM, Raphael wrote:
Out of curiosity, why do you want to copy your assets on the sdcard
anyway? They are already nicely zipped in your APK.
R/

On Wed, Oct 28, 2009 at 9:45 AM, Jeffrey Blattman
<[email protected]> wrote:
  
i would like to copy some files from assets to the SD card when my app is installed. i see the PACKAGE* intents, but i'm unclear which one (or set) i should be listening for. i am sure this is a common pattern, can someone point me to a page that describe the proper way to do this?

thanks.

--
    
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

  

--

Reply via email to