int mfingerId=mUpdateMonitor.fingerId;
Log.d("from keyguard","id is "+mfingerId);
int myid=Settings.Global.getInt(mContext.getContentResolver(),"my_FINGER_ID",-1);
Log.d("from Global", "fingerid is " +myid);
if(ifFingerprint&&mfingerId==myid)
{
PackageManager mPackageManager = mContext.getPackageManager();
mPackageManager.setApplicationLockState("com.jrdcom.privatezone", 2);
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
//组建名,下面的代码很关键,参数(包名,目标Activity名)
ComponentName comp = new ComponentName("com.jrdcom.privatezone",
"com.jrdcom.filemanager.activity.ApplicationLockActivity");
intent.setComponent(comp);
mContext.startActivity(intent);
ifFingerprint=false;
}
Android 开启第三方APP
猜你喜欢
转载自www.cnblogs.com/chsigu/p/10642288.html
今日推荐
周排行