I use StrictMode
in my application, android 4.0.3 api, in my BaseApp
I detect everything.
builder.detectAll(); builder.penaltyLog(); StrictMode.VmPolicy vmp = builder.build(); StrictMode.setVmPolicy(vmp); StrictMode.ThreadPolicy.Builder builder1= new StrictMode.ThreadPolicy.Builder(); builder1.detectAll(); builder1.penaltyLog(); StrictMode.ThreadPolicy tdp=builder1.build(); StrictMode.setThreadPolicy(tdp);
then. I just call this.finish()
in my activity: always show this error. What for? I use android: launchMode = "singleInstance" in my Manifest.xml, they always show this error, why?
06-27 14:47:34.725: E/StrictMode(18592): class com.onecard.ui.business.AllBusinessActivity; instances=2; limit=1 06-27 14:47:34.725: E/StrictMode(18592): android.os.StrictMode$InstanceCountViolation: class com.onecard.ui.business.AllBusinessActivity; instances=2; limit=1 06-27 14:47:34.725: E/StrictMode(18592): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1)
source share