Android 開啟第三方APP
阿新 • • 發佈:2019-04-02
locks oid keyguard app als launcher pack tex lob
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