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

5496 questions
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…
137
votes
1 answer

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
  • 30,821
  • 26
  • 115
  • 272
135
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
  • 2,746
  • 3
  • 22
  • 26
132
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…
toobsco42
  • 6,131
  • 16
  • 73
  • 85
113
votes
7 answers

How to fix "unexpected element found in " error?

All of a sudden, I am getting this build error in my Android project: unexpected element found in How do I fix it?
CommonsWare
  • 910,778
  • 176
  • 2,215
  • 2,253
113
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
  • 2,872
  • 9
  • 22
  • 51
110
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,450
  • 4
  • 17
  • 23
99
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):…
98
votes
32 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,385
  • 4
  • 12
  • 21
97
votes
15 answers

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the 'net, and have it passed to my application to deal with it, but I haven't been able to figure out the intent filter. The filetype is not included in the mimetypes, and I…
Curyous
  • 8,246
  • 12
  • 54
  • 77
95
votes
16 answers

Android intent filter: associate app with file extension

I have a custom file type/extension that I want to associate my app with. As far as I know, the data element is made for this purpose, but I can't get it working. http://developer.android.com/guide/topics/manifest/data-element.html According to the…
Tamas
  • 1,294
  • 1
  • 12
  • 14
92
votes
3 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
  • 21,330
  • 22
  • 85
  • 134
86
votes
10 answers

How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?

I've read through several posts about using this, but must be missing something as it's not working for me. My activity A has launchmode="singleTop" in the manifest. It starts activity B, with launchmode="singleInstance". Activity B opens a browser…
piusvelte
  • 1,466
  • 2
  • 15
  • 18
85
votes
3 answers

How to show one layout on top of the other programmatically in my case?

My main layout main.xml simply contains two LinearLayouts: The 1st LinearLayout hosts a VideoView and a Button, The 2nd LinearLayout hosts an EditText, and this LinearLayout has set the visibility value to "GONE" (android:visibility="gone") like…
Mellon
  • 33,620
  • 73
  • 177
  • 259
85
votes
4 answers

AnalyticsService not registered in the app manifest - error

I am trying to implement google analytics service to android app using the following documentation provided in sdk: https://developers.google.com/analytics/devguides/collection/android/v4/ I am unable to see any information in the analytics admin…
CreativeManix
  • 2,048
  • 1
  • 15
  • 27