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?
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);