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

What happens if the minSdkVersion is lower than the targetSdkVersion?

I am getting the warning: Attribute minSdkVersion (3) is lower than the project target API level (8) How will this affect my app?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
32
votes
1 answer

How to specify Activities that are only for phones or tablets on Android

I was reviewing the Google I/O Session 2012 app and came across this TODO // TODO: use element instead private static final Class[] sPhoneActivities = new Class[]{ MapActivity.class, SessionDetailActivity.class, …
Dandre Allison
  • 5,975
  • 5
  • 42
  • 56
32
votes
5 answers

Is it possible to have custom attributes in AndroidManifest.xml tags?

I would like to add a custom attribute to the application tag of my AndroidManifest.xml file. Is this possible in the Android environment?
MM.
  • 4,224
  • 5
  • 37
  • 74
32
votes
10 answers

How to change android Activity label

I have created an Activity and declared in Manifest file. But I would like to re-use the same Activity for other purpose.
noname
  • 423
  • 1
  • 6
  • 9
31
votes
3 answers

Android Manifest merge error when removing package name for namespace

According to this doc we no longer need to provide package name in AndroidManifest.xml and instead use namespace in build.gradle and there we can define our package name. package="org.sample.domain" found in source AndroidManifest.xml:…
31
votes
5 answers

Android Studio - Assigning multiple value to ManifestPlaceholders in Gradle

I have two environment of my project one Prod another one is Staging. So whenever I have to build any of the environment, I have to change multiple keys like map key, label name and other things in manifest. So I have searched and find out some of…
Pankaj
  • 7,908
  • 6
  • 42
  • 65
31
votes
2 answers

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone…
31
votes
6 answers

How can I add my application's shortcut to the homescreen upon app installation?

I want to create my app's shortcut/launcher icon on the homescreen as soon as I install my app (even before I start it). Is that possible? How might I do that?
S P
  • 854
  • 4
  • 10
  • 21
30
votes
8 answers

R.styleable can not be resolved, why?

I have a resources.xml file located under direcotry values/ , That's /values/resources.xml
Leem
  • 17,220
  • 36
  • 109
  • 159
30
votes
10 answers

Where can I get a list of more Android permissions? (other than ...)

I'm trying to get a list of valid Android permissions. I know the 'official' ones at http://developer.android.com/reference/android/Manifest.permission.html but it seems there are more out there. Please do not answer by just repeating that link. For…
Scolytus
  • 16,338
  • 6
  • 46
  • 69
30
votes
3 answers

Google Analytics blocks Android App

I use Google Analytics in my Android App and it works well. After updating the SDK (google play service) to the current version (6587000) the app hangs up at startup at following line 8 of 10 times: GoogleAnalytics analytics =…
29
votes
4 answers

Android Manifest Restrict To Tablets

For business reasons I'd like to restrict my Android application strictly to tablet devices. At the moment, I can limit the app to Honeycomb devices by setting: android:minSdkVersion="11" But the next version of Android (Ice Cream Sandwich) will…
Daniel Delaney
  • 1,183
  • 3
  • 16
  • 21
29
votes
2 answers

Java.Lang.NoClassDefFoundError when implementing firebase cloud messaging

I am implementing push notifications using Firebase Cloud Messaging, for this I added this code in my AndroidManifest.xml file
29
votes
2 answers

What's the usage of tools:targetApi="m"?

I have an app uses clearText between Android-client and server using Retrofit, and in Android 9+ it's not allowed to use clearText. To ignore that I added android:usesCleartextTraffic="true" in Manifest but it warns: …
Mahdi Moqadasi
  • 2,029
  • 4
  • 26
  • 52
29
votes
1 answer

Differentiate implicit broadcast receiver vs explicit broadcast receiver in the manifest

According to the migration guide to Android O given by Google, most of the implicit broadcast intent should not be registered in the Manifest (minus a few exceptions found here) but explicit broadcast intents remain untouched. We are looking to move…