Questions tagged [android-manifest]

The manifest presents essential information about the application to the Android system

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest presents essential information about the application to the Android system, information the system must have before application can be installed and run any of the application's code.

See AndroidManifest.xml permissions

6006 questions
194
votes
8 answers

How can you get the Manifest Version number from the App's (Layout) XML variables?

I would like to have a way to reference the project's manifest version number in the main part of the code. What I have been doing up until now is to link the version number in a String XML file to the manifest (@string/Version). What I would like…
PearsonArtPhoto
  • 38,970
  • 17
  • 111
  • 142
178
votes
9 answers

Android studio 3.5 refactor issue

I've just updated to Android Studio 3.5 and now when I try to refactor the file AndroidManifest.xml, all my app permissions are moved to the bottom of the file. Has anyone else faced this issue? Is there any solution for this? Before…
Sagar Kacha
  • 8,338
  • 4
  • 18
  • 27
176
votes
2 answers

How to add more than one `tools:replace` in Android Manifest Application?

I'm using a library that has the below in its Manifest. However, as the application that I use to include the library the reverse of the…
Elye
  • 53,639
  • 54
  • 212
  • 474
149
votes
4 answers

Missing support for Firebase App Indexing (android lint)

I receive this lint warning when analysing my code (Analyse > Inspect Codes) on Android studios. App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent-filler. See issue explanation for more…
142
votes
7 answers

"Protected Apps" setting on Huawei phones, and how to handle it

I have a Huawei P8 with Android 5.0 that I'm using for testing an app. The app needs to be running in the background, as it tracks BLE regions. I've discovered that Huawei has built in a "feature" called Protected Apps, that can be accessed from…
jaseelder
  • 3,403
  • 3
  • 25
  • 26
137
votes
50 answers

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED?

I am developing a small application that lists all the applications present/ installed on the android device. But I'm getting the below error while i'm trying to run the code. Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Please can…
S.P
  • 1,775
  • 5
  • 14
  • 21
134
votes
6 answers

Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)

I have figured out how to send and receive SMS messages. To send SMS messages I had to call the sendTextMessage() and sendMultipartTextMessage() methods of the SmsManager class. To receive SMS messages, I had to register a receiver in the…
Etienne Lawlor
  • 6,817
  • 18
  • 77
  • 89
133
votes
5 answers

You can't submit updates as some information about your app is incomplete (Google Play)

Cannot update my app in Google Play since it says: This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn't use advertising ID. You must update your advertising ID…
130
votes
22 answers

Warnings Your Apk Is Using Permissions That Require A Privacy Policy: (android.permission.READ_PHONE_STATE)

In manifest not added android.permission.READ_PHONE_STATE. permission. Why error comes when I upload a new apk version error comes below. Your app has an apk with version code 1 that requests the following permission(s):…
124
votes
15 answers

I am trying to test android deep link urls through adb to launch my app

When I type the command in adb: ./adb shell am start -W -a android.intent.action.VIEW -d "example:gizmos" com.myapp I get this error: Starting: Intent { act=android.intent.action.VIEW dat=example://gizmos pkg=com.myapp } Error: Activity not…
user3773337
  • 2,086
  • 4
  • 20
  • 29
122
votes
8 answers

What is the purpose of "android.intent.category.DEFAULT"?

What is the purpose of using android.intent.category.DEFAULT in the Category field of Intent Filters?
Pravy
  • 2,165
  • 5
  • 22
  • 28
121
votes
11 answers

intent.resolveActivity returns null in API 30

Looking at intent.resolveActivity != null but launching the intent throws an ActivityNotFound exception I wrote opening a browser or an application with Deep linking: private fun openUrl(url: String) { val intent = Intent().apply { …
119
votes
3 answers

Android Task Affinity Explanation

What exactly is the attribute taskAffinity used for? I have gone through the documentation but I couldn't understand much. Can anyone explain task affinity in laymans terms?
Traxex1909
  • 2,650
  • 4
  • 20
  • 25
114
votes
6 answers

Adding Permissions in AndroidManifest.xml in Android Studio?

In Eclipse we were able to add permissions in AndroidManifest.xml by going to AndroidManifest.xml->Permission-> Adding permissions. How to add permissions in Android Studio? How can we get a list of all the permissions that we can add to an…
Nilesh Agrawal
  • 3,002
  • 10
  • 26
  • 54
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