search

Home  >  Q&A  >  body text

Android怎样在程序中打开指定的豌豆荚下载页面?

怎样在程序中打开指定的豌豆荚下载页面,类似于打开Google play的下载页面的形式,

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(playAppUrl)); 
browserIntent.setClassName("com.android.vending", "com.android.vending.AssetBrowserActivity");
browserIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(browserIntent);
PHP中文网PHP中文网2771 days ago718

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-17 11:46:13

    Wandoujia official does not provide this kind of link, you only have two choices:

    • Use market:// url, and then expect users to use Wandoujia to open the link;
    • Jump to the homepage of your application's Wandoujia webpage, such as http://www.wandoujia.com/apps/com.your.domain. Wandoujia has optimized this page for mobile browsers. There is a download link on it. As long as users have installed the Wandoujia client, they can download it directly.

    reply
    0
  • Cancelreply