John Spurlock wrote: > Not sure if you're implying that the context "application storage" > area (obtainable via Context) is stored on the sdcard. At least on > the emulator this is not the case - this data is stored on internal > storage, with or without an sdcard.
You are absolutely correct. However, that implies that I know, up front, what applications I'm dealing with. I'm implementing a library, not an application, and the library could be used by arbitrary developers with arbitrary applications. So, let's suppose my library is integrated into AppA, AppB, and AppC. While each of those have their own application storage area, AppA doesn't know about AppB or AppC, etc. On a desktop PC, we have common storage areas for program settings (/etc files in Linux, Registry in Windows, etc.). In those cases, I'd stick this UUID in there someplace the first time any of those app tried to use it. Android doesn't appear to have such a facility, possibly in the interests of security and minimizing cruft. I may be able to cook up a way of bootstrapping this via Intents. AppA registers a BroadcastReceiver on some Intent, after determining there are no listeners on that Intent. AppB discovers there is a listener on that Intent and uses it to get the UUID information. Unfortunately, I think this approach has holes (e.g., user installs AppC but doesn't launch it before powering down the phone; on power-up, user runs AppC first, so it thinks it's the first app on the phone and cooks up another UUID). I'm just trying to figure out if I'm missing some obvious solution for this. Thanks again! -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

