Questions tagged [android-applicationinfo]

ApplicationInfo class contains information about an Android application, corresponding to the information in the application manifest.

Information you can retrieve about a particular application. This corresponds to information collected from the AndroidManifest.xml's <application> tag.

See ApplicationInfo reference.

140 questions
1
vote
0 answers

How to fix 'Found leak at Activity instance' using LeakCanary

I am using Leak Canary to track memory leak and it says leaked at one of Activity instance. Can we get exact leak location in that Activity code and what instance means here? How to trace the code to get leak point?
1
vote
1 answer

Android PackageManager No package identifier when getting value for resource number 0x00000000

When using the PackageManager to get a list of applications from the device, if i call pm.getApplicationIcon(app); and the application does not have an icon, the system will return the system default as it's supposed to do, but i get this error…
Nathan F.
  • 3,250
  • 3
  • 35
  • 69
1
vote
1 answer

Can i get minSdkVersion from ApplicationInfo object below API level 24(of all installed apps)? if not, is there any alternative way?

I know that I can get the minSdkVersion of an app from ApplicationInfo object on API 24+. But is it possible on earlier APIs(as described in documentation). If there is no way, can someone tell me any alternative?
Ragib
  • 107
  • 7
1
vote
1 answer

How to get the developed organization name by using apk programmatically?

If anyone knows how to get developed organization name by using apk in android programmatically share your suggestions. FYI, I here by attached the image.
karthik
  • 321
  • 1
  • 8
  • 21
1
vote
1 answer

Application Info of a non installed app

i am trying to get some info (name and icon) from a non installed app. Basically o got the apk file, i didn't installed it yet, but i would like to display its name and icon in a list. I am trying to do this : public void getReceivedApps() { …
1
vote
0 answers

Packageinfo firstinstalltime wrong for some system / vendor apps

While capturing a list of all installed packages (using packageManager.getInstalledPackages(flags)) I noticed that some vendor pre-installed (mostly) and a few system android apps (like Downloads and Cell broadcast) have a wrong firstinstalltime…
1
vote
2 answers

Starting an Activity Using Intent's Action and Limiting it to Within an App

I have 2 Apps which have the same package name but different package IDs(set in gradle config). An activity is started by setting an intent's action string in both the apps which are same in both Apps. This means that if I have both the Apps…
1
vote
1 answer

Extracting the package name of the last installed app on my phone

I am writing a code to extract the package name, application name, and icon from the last installed app on my phone. I can get the application common name and icon from the application info, but I can't seem to figure out how to get the package…
1
vote
1 answer

Connectivity broadcastReceiver calls Application's onCreate method

On my application, I'm doing a set up (including calls to our server) on Application's onCreate method. On the other hand, we use a broadcastReceiver to get the changes on connectivity. Everything seems to be working fine but, if we kill the…
1
vote
1 answer

Register Application class in Manifest?

i wanna register my overrided Application class in the manifest file already asked questionn (didnt help my case) Register Application class in Manifest? in the above question. the user got his answer . but in my case . android:name="" is filled by…
1
vote
2 answers

android fully_qualified_classname is not assignable to 'android.app.application'

I just created a new project in android studio. FRESH NEW PROJECT. No activities. Just one single java class named MyApplication. I have extended that class with 'Application' so it's a subclass of Application. Now I go to modify my manifest file to…
1
vote
2 answers

New Linkedin API for mobile (android)

I was going through the new Linkedin Android SDK . I believe that for any app that is going to use the SDK, having the Linkedin app on the android phone is mandatory.Is this understanding correct? If not, then what is the way out?
1
vote
3 answers

Android categorize installed applications

I want to categorize installed android applications (Like Social, Entertainment, Games, News, Tools and etc). Can anyone suggest how can i programmatically arrange all the installed apps?
1
vote
1 answer

Some questions about "DONT_DELETE_DATA" , how it works, and how do apps use it

Background I'm developing an app-manager app, and I've noticed that there is a way to get a list of "uninstalled apps" (using "GET_UNINSTALLED_PACKAGES" flag) , which are apps that requested to avoid removal of their data upon uninstallation…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
1
vote
1 answer

Get a list of all app icons for installed launchers and display each icon on a remote view

I am able to use an intent filter to gather a list of all installed launchers. The trouble is pulling out an int reference to the app icon. The code below catches a NameNotFoundException error. public RemoteViews getViewAt(int position) { …