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
41
votes
3 answers

Android Library Manifest vs. App Manifest

I've read similar questions here, but am still not clear on a couple of things. Using a Library Project means that my overall project will have two manifests -- one for the library and the other for the "main" app project -- and I'm not clear what…
40
votes
3 answers

Find androidManifest flutter

This might be a very stupid question, but where do i find the AndroidManifest.xml? I'm using IntelliJ and I'm trying to add a Google-map to my Flutter project. I have read…
J.W
  • 1,135
  • 4
  • 13
  • 21
40
votes
1 answer

Attribute application@allowBackup value=(false) from AndroidManifest.xml is also present at [:barcodescanner:] AndroidManifest.xml value=(true)

I’m trying to set the allowBackup attribute in my ionic 3 app manifest to false but gradle complains with the following error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:4:18-45 is also present at [:barcodescanner:]…
Sumit Manna
  • 541
  • 1
  • 5
  • 16
40
votes
5 answers

"Possible overdraw: Root element paints background "

While running Android Lint on my Project I came across this warning Possible overdraw: Root element paints background @drawable/main with a theme that also paints a background Where inferred theme is…
Sunny Kumar Aditya
  • 2,806
  • 4
  • 26
  • 38
40
votes
6 answers

Resume the Top Activity instead of starting the Launcher Activity

I have two activities in My application, one being launcher and the other is launched as a explicit call from the first. Here My problem is when i go back to home screen by pressing home key from second activity and launch the application, again the…
Sudhaker
  • 785
  • 1
  • 6
  • 13
39
votes
12 answers

Designing Android apps for tablets

In the Play developer console it says: Your APK does not seem to be designed for tablets But I have added layouts to layout-sw600dp, layout-sw600dp-land, layout-sw720dp and layout-sw720dp-land folders. The complete manifest (as it is):
Frozen Crayon
  • 5,172
  • 8
  • 36
  • 71
37
votes
4 answers

What is the use of android permission Wake Lock?

When and why to use the android permission . Please provide sample code regarding wake lock.
java dev
  • 1,044
  • 1
  • 11
  • 17
36
votes
2 answers

How do you add user defined properties/values in to the Android manifest file?

I want to add a custom attribute / property into the manifest file, and be able to read it at run time. I want to do this so I can customize the app's behavior via these manifest properties. How can this be done?
inor
  • 2,781
  • 2
  • 32
  • 42
36
votes
2 answers

How is an Intent Service Declared in the Android Manifest?

Straight forward question: Is an IntentService declared in the Android Manifest as a regular service, or is there another way? It tried searching for it, but I couldn't find the answer. Here is the regular Service declaration:
gtdevel
  • 1,513
  • 6
  • 21
  • 38
35
votes
8 answers

How to fix "Error generating final archive: duplicate entry: AndroidManifest.xml"

I put two projects into Eclipse, called Project1 and Project2. Project1 is independent, but Project2 must be dependent to Project1. When I build the Project2, the error msg comes like this: Error generating final archive: duplicate entry:…
pyleaf
  • 371
  • 1
  • 3
  • 5
34
votes
26 answers

Error type 3: Activity Class {...} does not exist

AndroidManifest:
Chad Bingham
  • 32,650
  • 19
  • 86
  • 115
33
votes
5 answers

Android 33 - issues in manifest and layout files in Android Studio

Currently in my Android app I have targetSdkVersion 32 and in my AndroidManifest.xml file I have:
Darksymphony
  • 2,155
  • 30
  • 54
33
votes
5 answers

How to customize the width and height when show an Activity as a Dialog

If I have defined a Activity: public class DialogActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(dialog_activity.xml); } } I…
Leem
  • 17,220
  • 36
  • 109
  • 159
32
votes
2 answers

Avoid hardcoding the debug mode; Warning in Android Manifest

After updating my ADT plugin to version 17 I'm getting a warning massage saying Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one There wasn't such message before the update. How can I…
Chrishan
  • 4,076
  • 7
  • 48
  • 67
32
votes
9 answers

main cannot be resolved or is not a field

This error occurs in setContentView line in this code snippet: /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Android Eve
  • 14,864
  • 26
  • 71
  • 96