我StrictMode
在我的应用程序中使用 api android 4.0.3,在我的BaseApp
我检测到所有。
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);
然后。我只是 this.finish()
在我的活动中调用 , :总是显示这个错误。为什么?我是否在我的 Manifest.xml 中使用 android:launchMode="singleInstance",他们总是显示这个错误,为什么?
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)