Android怎样在程序中打开指定的豌豆荚下载页面?
PHP中文网
PHP中文网 2017-04-17 11:44:13
0
1
716

怎样在程序中打开指定的豌豆荚下载页面,类似于打开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中文网

认证高级PHP讲师

reply all(1)
迷茫

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.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template