i am attempting to launch an intent to open a link to the android market.
android manifest portion looks like this:
private void OpenStoreIntent(){
String url="";
Intent storeintent=null;
try {
url = "market://details?id=com.myapp.packagename";
storeintent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
storeintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
context.startActivity(storeintent);
} catch ( final Exception e ) {
url = "https://play.google.com/store/apps/details?id=com.myapp.packagename";
storeintent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
storeintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
context.startActivity(storeintent);
}
}