skip to main | skip to sidebar

惡龍的家

2019年5月3日 星期五

Launch the other app

Reference:

https://blog.csdn.net/shaw1994/article/details/39642473
https://dotblogs.com.tw/neil/2011/08/12/33058/

Code snippet:


public void switchToApp(String packageName) {

    Intent appIntent = getPackageManager().getLaunchIntentForPackage(packageName);

    if(appIntent != null){

        startActivity(appIntent);

    }

}
張貼者: 輝哲 於 晚上7:20 沒有留言:
標籤: App
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

網誌存檔

  • ▼  2019 (1)
    • ▼  5月 (1)
      • Launch the other app
  • ►  2018 (15)
    • ►  9月 (1)
    • ►  5月 (1)
    • ►  4月 (5)
    • ►  3月 (1)
    • ►  2月 (7)
  • ►  2017 (17)
    • ►  12月 (4)
    • ►  11月 (1)
    • ►  9月 (1)
    • ►  8月 (2)
    • ►  7月 (2)
    • ►  6月 (1)
    • ►  5月 (2)
    • ►  3月 (1)
    • ►  2月 (2)
    • ►  1月 (1)
  • ►  2016 (18)
    • ►  6月 (1)
    • ►  5月 (4)
    • ►  4月 (4)
    • ►  3月 (5)
    • ►  1月 (4)
  • ►  2015 (48)
    • ►  12月 (8)
    • ►  11月 (9)
    • ►  10月 (5)
    • ►  9月 (1)
    • ►  8月 (4)
    • ►  7月 (10)
    • ►  6月 (11)

關於我自己

輝哲
檢視我的完整簡介