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 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

Reply via email to