当前位置:操作系统 > 安卓/Android >>

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);
        }

 

补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,