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
106
votes
4 answers

What is use of android:supportsRtl="true" in AndroidManifest xml file

Whenever I created new project in android studio, I got android:supportsRtl="true" in my app AndroidManifest File.
pRaNaY
  • 24,642
  • 24
  • 96
  • 146
77
votes
10 answers

How can I find if a particular package exists on my Android device?

How can I find whether a particular package or application, say: com.android.abc, exists on my Android device?
brig
  • 3,721
  • 12
  • 43
  • 61
53
votes
1 answer

Android Studio - Company Domain Name

In Android Studio when you create a new project, you are prompted to put down a domain name. I already know that you can make one up but what if you want to distribute your app on the Google Play store? Do I need to buy a web domain just to…
David Read
  • 1,089
  • 1
  • 9
  • 23
45
votes
14 answers

How do I check if an app is a non-system app in Android?

I am getting a list of ApplicationInfo Objects with packageManager.getInstalledApplications(0) and attempting to categorize them by whether or not they are a system application. For a while I have been using the technique described here, however…
Phil
  • 35,852
  • 23
  • 123
  • 164
30
votes
4 answers

What is contained in "./META-INF/CERT.RSA" file for an Android app?

I am new to cryptography certificate and am trying to figure out the components of "CERT.RSA" file under "./META-INF" folder for an Android application. To my understanding, "CERT.RSA" is used to verify the signiture of "CERT.SF" file under the same…
27
votes
7 answers

Add the loading screen in starting of the android application

My app is loading the start page in 10 seconds. In that time of 10 sec android screen is blank. In that time I want to add the loading screen. How to add it? And tell me in app how to know the starting page is loading? And tell me how to do in my…
Anil M H
  • 3,332
  • 5
  • 34
  • 51
26
votes
2 answers

Android metadata from manifest returning null

I have a class with one method that tries to retrieve meta-data from the manifest. Everything works fine except that the bundle that I create from the application info returns null values Here's the code: private int getCurrentVersion(){ int…
Juan Bentel
  • 477
  • 2
  • 5
  • 15
24
votes
6 answers

How can I configure Launcher activity programmatically in android?

I am working on an app with two activities : LoginActivity and MainActivity. When the user first opens the app he will login and his credentials (username and token) are saved in Preferences. Now, if the user opens the app again then MainActivity…
aruke
  • 611
  • 1
  • 10
  • 17
14
votes
10 answers

How to get the list of apps that have been installed by a user on an Android device?

I am using the following piece of code at the moment: List packs = getPackageManager().getInstalledPackages(0); but it returns Apps that have been installed by the both device manufacturer and me. How to limit it so that only the apps…
11
votes
2 answers

How to get installed application name in android?

I have made a small method to display the installed application name in android. But when i give "name" attribute its showing exception error. And when i give "packageName" the method executes perfectly and displays the package name in a…
Unnikrishnan
  • 501
  • 2
  • 9
  • 18
9
votes
1 answer

Request Permission from Application class

As per the new Android doc, In order to collect certain data, I need to request for permission. So I am doing this : @Override public void onCreate() { super.onCreate(); ... ... if (PermissionUtility.isPermitted(applicationContext,…
7
votes
2 answers

Is there any way to detect to which apps I can/can't reach their "app-info" screen?

Background You can get a list of installed apps using PackageManager.getInstalledPackages. And, you can reach the app-info screen of each app via : val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
6
votes
2 answers

How do I call remote API using Phonegap for Android?

How do I do remote API call in Android Apps using Phonegap???
Surya
  • 439
  • 3
  • 9
  • 31
6
votes
2 answers

Is it possible to know the source(e.g. Google Play) of Android app?

Is it possible to check whether an application was installed via Android market (Google Play Store) or by other means? Basically what I want to know is whether an application is genuine or not. If the source of installation of an app is Play Store,…
Atul Goyal
  • 3,511
  • 5
  • 39
  • 59
5
votes
3 answers

Activity has a method called getTaskId(). How do I know if this task id matches the task id of the Application task stack?

I can get the app ID from my running activity via activity.getTaskId(). It will report back 185. If I go to another app, and start my activity from a share button, it will be placed IN THAT apps stack. If I do activity.getTaskId() it will report…
user2676468
1
2 3
9 10