Questions tagged [android-package-managers]

Class for retrieving various kinds of information related to the application packages that are currently installed on the device. You can find this class through getPackageManager().

561 questions
3
votes
0 answers

Start Application's default activity OR resume

Dear fellow developers, I am developing some kind of tool to launch applications. Currently, I am just getting the default launch component form the package manager (queryIntentActivities, ACTION_MAIN, CATEGORY_LAUNCHER) and launching it with that.…
3
votes
2 answers

pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY) not giving corerct answer

I want to check if a device has any cameras before trying to open a qr code reader. I have the following code: public boolean checkDeviceCompatibility() { PackageManager pm = context.getPackageManager(); if…
3
votes
3 answers

get package (app) version name when uninstall it

I have the following broadcast receiver to capture the event when user is uninstalling app on device, technically, I am receiving intent with action ACTION_PACKAGE_REMOVED: public class appUninstallReceiver extends BroadcastReceiver { …
3
votes
2 answers

Android Camera : Does it have a unique package name?

I am building an app that auto sorts installed apps and allows the user to launch those apps. I just ran into a small issue with the camera app. When I scan through the installed apps with 'queryIntentActivities' for 'ResolveInfo' I get the gallery…
3
votes
0 answers

Get Android Updated Application

I have been searching around this site and google for a couple of hours now, and I can't find anything about this. Maybe because I use the wrong search terms, I don't know. I am making an Application List for an App of mine, and for the most part…
Daniel B
  • 1,205
  • 14
  • 18
3
votes
2 answers

Getting error of parsing the package during updating my new version of apk

Android Experts, I have installed signed apk (version 1.6) and on my server I've uploaded apk( version 1.7). Now I am facing problem during Update my apk from server.. I also got Dialog box for Updating but at the end I am getting error as "Parser…
CKnDROID
  • 123
  • 1
  • 3
  • 13
3
votes
2 answers

Android get a list of all installed apps

I have obtained a list of installed app using this code: public List() { PackageManager pm=getPackageManager(); Intent main=new Intent(Intent.ACTION_MAIN, null); main.addCategory(Intent.CATEGORY_LAUNCHER); …
ptia
  • 141
  • 2
  • 3
  • 14
3
votes
3 answers

Android - Get List of Apps in Debug mode

I am trying to develop an android application where i have the following requirement. Is there any way through code, i can get the list of apps installed on devices in debug mode. Thanks in advance. EDIT - I tried the following code. …
Prem
  • 4,823
  • 4
  • 31
  • 63
3
votes
1 answer

Android : what is canonical package name?

Android's PackageManager class has currentToCanonicalPackageNames() and canonicalToCurrentPackageNames() methods. What exactly is canonical package name? Where is it used (what's its purpose)? When does it differ from a current package name? For…
alexaschka
  • 433
  • 6
  • 14
3
votes
1 answer

How to detect new apps in an Android device

I want to detect when the user installs or deletes an app, and I didn't find a BroadcastReceiver that does this. In my app, I get the information about the installed apps with the class PackageManager, but I don't want to scan the apps periodically.…
3
votes
1 answer

PackageManager.queryIntentActivities() returns incomplete list?

I am writing a launcher in Android and here is the problem I have been trying to fix for a while with no luck. I have below code to query all activities running at very beginning of my launcher, say onResume(). final Intent mainIntent = new…
Farmer
  • 53
  • 1
  • 6
2
votes
1 answer

Reserving Package Namespace Collision on Android Marketplace aka Google Play

I am starting to encounter situations where the package namespace I'd like to use appears to be already taken. In some cases, it's odd, because it's a com.* name, and it feels like someone is "domain" squatting my package name space! This question…
ina
  • 19,167
  • 39
  • 122
  • 201
2
votes
1 answer

Get icon of application on sdcard

Hi I have an application on my sd (not installed just stored there) how can I get information about it by just giving the path to the application. For instance I have pandora.apk sitting in my downloads folder so the path is…
user577732
  • 3,956
  • 11
  • 55
  • 76
2
votes
1 answer

Can I uninstall an application without a dialog?

I'm writing launcher where I want to delete specific application on user click without calling remove intent. Can I do this?
skayred
  • 10,603
  • 10
  • 52
  • 94
2
votes
2 answers

Android 12 breaks installation of APK via the Package Manager?

I was working on an update for my app, a section of which deals with downloading and installing an APK file. As long as the previous version were targeting SDK 30 everything worked pretty smoothly. But as soon as I incremented the target and compile…
Prakhar Shukla
  • 107
  • 1
  • 10