The file name is arbitrary. You can get the path to the .apk of a particular package in ApplicationInfo, which will be returned from various things in the package manager like PackageManager.getApplicationInfo().
On Tue, May 31, 2011 at 11:07 AM, Edmund <chang.edm...@gmail.com> wrote: > We are working on our own type of Package Management. I was trying to > find out if say the actual file name of the package was > "angrybirds.apk" and the name its listed in when you do a "pm list" is > something like "com.rovio.games.angrybirds". How can I convert between > the two in Android 2.1? > > Thanks, > --Edmund > > On May 27, 5:44 pm, Dianne Hackborn <hack...@android.com> wrote: > > SDK developers shouldn't care about these. > > > > > > > > > > > > > > > > > > > > On Fri, May 27, 2011 at 5:27 PM, Edmund <chang.edm...@gmail.com> wrote: > > > Hi, > > > > > I am working on an Android 2.1 (API Level 7) device. The > > > canonicalToCurrentPackageNames() and currentToCanonicalPackageNames() > > > functions are API Level 8 (2.2) and above. Is there any way I can > > > accomplish that functionality in Android 2.1? > > > > > Thanks, > > > -- Edmund Chang > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en