Android中打開並遷移到GooglePlay App的MyPage畫面

             用如下的代碼可以實現

            

[java] 
public void moveToGooglePlay() throws Exception { 
            Intent i = new Intent("com.google.android.finsky.VIEW_MY_DOWNLOADS"); 
            i.setComponent(new ComponentName("com.android.vending","com.android.vending.AssetBrowserActivity")); 
            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
            startActivity(i); 
        } 

public void moveToGooglePlay() throws Exception {
         Intent i = new Intent("com.google.android.finsky.VIEW_MY_DOWNLOADS");
            i.setComponent(new ComponentName("com.android.vending","com.android.vending.AssetBrowserActivity"));
            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(i);
        }

 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *