If this is reported through the market, I wouldn't take it seriously. I manage a very high profile app on the market and it gets all kinds of strange exceptions on what I can only assume are poor Android devices, custom roms, or roms that are in development. If you want better information, use ACRA and look at the extended information it gives you.
Right now I'm in a tussle with a major device manufacturer who, as far as I can tell, has somehow managed to break some very basic functionality in the dalvik VM which manifests as a index out of bounds exception on String, which is impossible at that point in the code where the String method is being called. Fortunately, this firmware is not public yet! Doug On Feb 7, 5:46 am, William Ferguson <[email protected]> wrote: > Hi Mark, > > Its on the UI thread from a button click. > > William > > On Feb 7, 11:37 pm, Mark Murphy <[email protected]> wrote: > > > > > > > > > When are you calling this? > > > One conceivable scenario would be if you are doing this a bit > > asynchronously from your activity (e.g., AsyncTask). If the user fired > > up your activity, then hustled over to uninstall it, *and* if the > > uninstall process were to update the package info before terminating > > your process, *and* your background work called getPackageInfo() > > between the update of PackageManager and your process being > > terminated, I can see you getting this error. Even assuming all the > > implementation stuff works as described, though, this seems like a > > low-probability event. > > > Beyond that, all I can think of are gremlins. > > > On Tue, Feb 7, 2012 at 7:43 AM, William Ferguson > > > <[email protected]> wrote: > > > I'm received several instances of the IllegalStateException being > > > thrown out in the wild. > > > It's very rare and I can't reproduce it locally. > > > > How is it possible for it to occur? > > > NB Context below is this case is an Activity. > > > > final String packageName = context.getPackageName(); > > > try { > > > return context.getPackageManager().getPackageInfo(packageName, > > > PackageManager.GET_SIGNATURES); > > > } catch (PackageManager.NameNotFoundException e) { > > > throw new IllegalStateException("Could not find the package for " > > > + packageName + "!!", e); > > > } > > > > William > > > > -- > > > 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 > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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

