Re: 2 - Isn't that what MODE_WORLD_READABLE is for? http://code.google.com/android/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int)
MODE_WORLD_READABLE = "File creation mode: allow all other applications to have read access to the created file." Hope that helps, - John On Oct 15, 5:58 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > I need a unique ID for each phone, just enough to distinguish it from > any other Android phone. In theory, TelephonyManager#getDeviceId() would > be fine, except that it requires READ_PHONE_DATA as a permission, and > that seems overkill. > > The catch is that I need this ID to be cross-application; two > applications on the same device need to get the same ID. > > So, two questions: > > 1. Is there some other API in Android-land that returns a unique value > for each phone, that I just haven't found yet? One that does not require > any special permission to access? I even considered a MAC address, but > Android doesn't offer NetworkInterface#getHardwareAddress(), unfortunately. > > 2. If the answer to #1 is "no, silly", is there a spot (that I just > haven't found yet) where I could tuck a world-readable UUID that could > serve this purpose? It doesn't seem like there's any good > cross-application storage spot outside of the SD card, and I can't count > on all devices having one. > > Thanks in advance! > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

