I would like to make android button and able to launch other application if already installed and go to android market if not yet installed.
How to do this?
Regards, Virak
With Google Play Instant, people can use an app or game without installing it first. Increase engagement with your Android app or gain more installs by surfacing your instant app across the Play Store and Google Play Games app.
Swipe up from the bottom of your screen to the top. If you get All Apps , tap it. Tap the app that you want to open.
Android Instant Apps allows you to access the cloud-based version of an app without accessing the Play Store to install it manually. Therefore, you can use an app beforehand instead of installing it and then try it out.
use below code
String packageName = "app_package_name";
Intent intent = getPackageManager().getLaunchIntentForPackage(packageName);
if(intent == null) {
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+packageName));
}
startActivity(intent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With