Hi,
I want to add a download link for users if a new version of app is 
available. If a new version is available, a pop up is displayed in the app 
to update the app. If a user want to update play store corresponding to 
that app is given. The problem is that when a user tries to update the app 
it opens a popup with a 'Accept' Button. Button when the user clicks on it 
nothing happens. Some times this process is working.
The code snippet to play store for app update is below:

try {
startActivity(new Intent(
Intent.ACTION_VIEW,
Uri.parse("market://details?id="
+ appPackageName)));

} catch (android.content.ActivityNotFoundException anfe) {

startActivity(new Intent(
Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/details?id=";
+ appPackageName)));
}




Could you please help me. Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c81c7188-101f-4a2f-87ef-9239f45d135d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to