I published an app 2 moths ago and sometimes, I am getting some errors from the users.
Here is the log:
java.lang.NoClassDefFoundError: android.os.St
Strict Mode was introduced in API level 9, and you've got 8 set as your minimum in the manifest. These are probably from users running 2.2.x (API level 8).
In Android below Gingerbread (API 9) StrictMode doesn't exists. So when importing the Library or using StrictMode code the Activity will throw an Exception.
May be it works the following workaround helps (in PseudoCode):
in Activity
if(9 >= android.os.Build.VERSION.SDK_INT){
StrictModeHelper.disable();
}
external Class (only here importing the strictmode lib)
class StrictModeHelper{
public static disable(){
// do disable strict mode stuff
}
}