我是在一个service里面调第三方apk,关掉后第二次调就起不来了。
log里面报下面这段,不知道什么意思。
PsensorService: FLAG = true
ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:658 android.content.ContextWrapper.startActivity:331
代码就是调activity
@Override
public void onFinish() {
isCameraCountDown = false;
Log.d(TAG, "FLAG = " + FLAG);
if (FLAG) {
FLAG = false;
Intent intent = new Intent();
intent.setClassName("home.com.labelrecognize", "home.com.labelrecognize.LabelRcognizeExternalCamera");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
}