Start Android Market from App

前端 未结 3 1724
渐次进展
渐次进展 2020-12-28 22:22

I\'m developing a lite version for an app on the Android. How can I start an Intent to open the Android Market, preferably with the full version of my app displayed? This is

3条回答
  •  情话喂你
    2020-12-28 22:59

    Found answer in the end:

    Intent intent = new Intent(Intent.ACTION_VIEW); 
    intent.setData(Uri.parse("market://search?q=pname:MyApp")); 
    startActivity(intent);
    

    No way of testing on emulator, though.

提交回复
热议问题