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
76
votes
14 answers

Manifest merger failed : Attribute application@appComponentFactory - Androidx

When I'm building Gradle with androidx I get the following error. Please help me to solve this issue. Error Message: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from …
Kanwarpreet Singh
  • 2,037
  • 1
  • 13
  • 28
76
votes
12 answers

Deep-linking intent does not work

I followed the insttructions on https://developer.android.com/training/app-indexing/deep-linking.html, but when I want to trigger the intent through adb with: adb shell am start -W -a android.intent.action.BROWSEABLE -d…
Mahoni
  • 7,088
  • 17
  • 58
  • 115
75
votes
3 answers

Naming my application in android

I think I'm getting senile because I was convinced that to give a name to your application, you had to fill this part of the manifest: However for a reason I don't…
Sephy
  • 50,022
  • 30
  • 123
  • 131
73
votes
9 answers

Manifest merger failed error

I am in the process of moving my current projects huge application into Android Studio and Gradle. I am currently stuck on the following issue: Error:(87, 9) Execution failed for task ':App:processDebugManifest'. > Manifest merger failed : Attribute…
James King
  • 2,425
  • 7
  • 30
  • 45
72
votes
2 answers

How to specify to not allow any data backup with android:dataExtractionRules?

My current Android application targets 12 and higher. I do not want to allow backup of any type and currently have these manifest settings: android:allowBackup="false" android:fullBackupContent="false" However the android:allowBackup="false"…
Hector
  • 4,016
  • 21
  • 112
  • 211
72
votes
4 answers

What is metadata ? And what is the use of it in android

I am new to android and I have not seen or heard about meta data before. However I google it and search about it on YouTube that it is basically a information of your object. Correct me if I am wrong. Can any one help me to understand it in a better…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
69
votes
4 answers

Get android:versionName manifest element in code

I want to know how to parse the AndroidManifest.xml file in order to get the Application Version Number through code. android:versionName
jennifer
  • 8,133
  • 22
  • 69
  • 96
66
votes
12 answers

add 'tools:replace="Android:value"' to element at AndroidManifest

I'm following a tutorial in HeadFirst Android development and encountered issues after adding: private ActionBarDrawerToggle drawerToggle; The control was deprecated so I followed instructions on Stack to resolve that issue by adding…
63
votes
3 answers

What's the difference between access network state (ACCESS_NETWORK_STATE) and WIFI state (ACCESS_WIFI_STATE) permissions?

In Permissions tab of Android Manifest, in the drop down there are options called android.permission.ACCESS_NETWORK_STATE and android.permission.ACCESS_WIFI_STATE. What is the difference between them? Is ACCESS_NETWORK_STATE more generalized than…
JDroid
  • 633
  • 1
  • 5
  • 5
63
votes
5 answers

How to use custom permissions in Android?

I have two applications. One is declaring permission and having single Activity: Part of AndroidManifest.xml
pixel
  • 24,905
  • 36
  • 149
  • 251
62
votes
17 answers

Could not identify launch Activity: Default Activity not found

I'm new to android and I have encounterded a problem. The console said that "Could not identify launch activity: Default Activity not found". I have add
Jiawei Yang
  • 1,553
  • 2
  • 12
  • 17
59
votes
6 answers

Debugging a service

I have written a service with a remote interface and installed it on my PC's Eclipse AVD. I have a client test harness which starts and invokes methods in the service. Initially I had the service installed by a control class and activity, which I…
NickT
  • 23,844
  • 11
  • 78
  • 121
59
votes
14 answers

Android Studio gets package name wrong when running .apk

I changed my package name from com.mycompany.myapplication to com.mycompany.testapp. Everything builds fine but when I try to run it on the emulator, I get: The session was restarted Target device: NexusS [emulator-5554] Uploading file …
antgel
  • 1,241
  • 1
  • 14
  • 29
58
votes
5 answers

Android 13 - How to request WRITE_EXTERNAL_STORAGE

I am targeting my Android app for Android 13 (API 33) The WRITE_EXTERNAL_STORAGE permission seems to be working fine below API 33 i.e. Android 12 and less but the runtime permission popup for WRITE_EXTERNAL_STORAGE won't appear when running the app…
57
votes
3 answers

What's the "dot" for when registering an Activity

I'm kind of a noob at programming for the Android OS. I noticed in the books I have been reading that the authors have placed a "dot" in front of the activity name when registering their activities in the manifest. I've looked around the Android…
Cavachon
  • 2,819
  • 4
  • 21
  • 20