I had to use two apps on my android mobile that I named A & B.
A check that B not installed in mobile.
Can I do this?
I used app cloner, APK Editor, APK manager and some other apps to rename app name but it doesn't work.
Asked
Active
Viewed 81 times
-2

Phantômaxx
- 37,901
- 21
- 84
- 115

Sheede
- 307
- 1
- 4
- 12
-
1What do mean by this ? Is this question even related to programming ? – ADM Jan 08 '18 at 06:15
3 Answers
0
private boolean appInstalledOrNot(String uri) {
PackageManager pm = getPackageManager();
try {
pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);
return true;
} catch (PackageManager.NameNotFoundException e) {
}
return false;`
}
you can call this method where you want to check if application is installed or not Hope this helps

Mohit Hooda
- 273
- 3
- 9
-2
I use the following approach.
boolean isAppInstalled = appInstalledOrNot("com.check.application");
if(isAppInstalled) {
//This intent will help you to launch if the package is already installed
Intent LaunchIntent = getPackageManager()
.getLaunchIntentForPackage("com.check.application");
startActivity(LaunchIntent);
Log.i("Application is already installed.");
} else {
// Do whatever we want to do if application not installed
// For example, Redirect to play store
Log.i("Application is not currently installed.");
}
Hope that helps

Akshay
- 1,161
- 1
- 12
- 33
-2
yes,yes, because there is a plugin or code that can directly help you check if the App is already in place.
boolean isAppInstalled = appInstalledOrNot("com.check.application");
if(isAppInstalled) {
//This intent will help you to launch if the package is already installed
Intent LaunchIntent = getPackageManager()
.getLaunchIntentForPackage("com.check.application");
startActivity(LaunchIntent);
Log.i("Application is already installed.");
} else {
// Do whatever we want to do if application not installed
// For example, Redirect to play store
Log.i("Application is not currently installed.");
}

panda
- 1