I have a question regarding the app upgrade scenario from the app. Basically I am sending the app version from app to application server and then deciding whether to show the app upgrade reminder screen or not. App upgrade reminder screen has 2 options "update now" or "ignore".
Requirement is Update Now should open play store app with my app already searched on it.
I implemented following code :
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appName)));
} catch (android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + appName)));
}
There are 2 problems with it :
1) It opens play store on top of my App. I need play store app to open separately and my app should still be alive.
2) Play store shows only 2 options (Uninstall and Open). It doesn;t give option to update the app.
Can someone please throw some direction to it.