One place it is documented is here: http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
<http://developer.android.com/guide/topics/data/data-storage.html#filesInternal>You'll want MODE_WORLD_READABLE. On Tue, Jan 11, 2011 at 10:02 PM, xeagle <[email protected]> wrote: > Could you explain "how to make file world readable" more clearly? I > try API "openFileOutput" and "getDir" and both APIs does not work. > Seems that Android does not permit app's private file be accessed by > other app. > > On Jan 12, 11:54 am, Dianne Hackborn <[email protected]> wrote: > > You need to make the file world readable. The system itself doesn't have > > permission to access your data unless you explicitly allow it. See the > flag > > on Context to request a file you open be world readable. > > > > > > > > On Tue, Jan 11, 2011 at 7:24 PM, xeagle <[email protected]> wrote: > > > I meet an issue when using below method. It works if apk file is put > > > on sdcard. However, if there is no sdcard on phone, app must put apk > > > file at "/data/data/<appname>/xxx", package installer fail to install > > > the apk because file in "/data/data/<appname>/xxx" only has private > > > permission. How do you deal with this issue? > > > Thanks! > > > > > I do this kind of incremental update for the PayPal version of my > > > app. I do it in the same way that Brad described. If the app finds a > > > new version on the server, it pops a dialog asking the user to update > > > or postpone it. If they click update, it downloads via an AsyncTask, > > > and installs via the following code: > > > > > Intent intent = new Intent(); > > > Uri uri = Uri.fromFile(file); > > > intent.setAction(android.content.Intent.ACTION_VIEW); > > > intent.setDataAndType(Uri.parse(uri.toString()), > > > "application/vnd.android.package-archive"); > > > startActivity(intent); > > > > > You could then delete the downloaded apk file on the next run to clean > > > up. > > > > > -- > > > 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]<android-developers%[email protected]> > <android-developers%[email protected]<android-developers%[email protected]> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

