?????Android Installer??Bug
???????????? ???????[ 2016/6/16 15:11:30 ] ????????Android ??????????
??????Bug????????????Android??5.0?汾???????н?????????Щ????APP??????????????????д?????
????????????
??????Android???????Installer???????ú?????????????????????
????1??????????installer???????á????home????????У?????????????????launcher????????????????????????????????????????????????
????2???????installer???氳???????????????????launcher??????????á??????home?????????ε???????????????????????home????????Activity??
??????????飺
???????????????????????????????????????????д??????????????????????????
????????App1??App2.
????App1???????Activity???????′??????App2.
????PackageManager packageManager = getPackageManager();Intent intent;
????intent = packageManager.getLaunchIntentForPackage("cc.ninty.app2");
????if(intent==null) {
????System.out.println("APP not found!");
????}
????startActivity(intent);
????App2????????Activity??Activity1??Activity2????Activity1????startActivity2.
????????????Activity??launch mode???????standard????????App1?????????????Activity??taskid??
??????????????App1?????App2?е?????Activity??taskid??App1??????????????ε??APP2??launcher???????Activity1??Activity2??????′?????Σ?????taskid???????????
???????????
????Android?????????д?bug??????δ???????????????Щ?????
????https://code.google.com/p/android/issues/detail?id=2373
????https://code.google.com/p/android/issues/detail?id=26658
????http://stackoverflow.com/questions/16283079/re-launch-of-activity-on-home-button-but-only-the-first-time/16447508#16447508
????????????
?????????????launcher????????????????????′???Activity1?????????Activity1?????task??root???????task???????е?activity????????????????Activity1??onCreate??????д?????ж??
????if ( !isTaskRoot() ) {
????finish();
????return;
????}
??????????task?л???????Activity???????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11