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
106
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,716
  • 15
  • 58
  • 83
104
votes
19 answers

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the 'an

Issue: You uploaded an APK or Android App Bundle which has an activity, activity alias, service, or broadcast receiver with intent filter, but without the 'android: exported' property set. This file can't be installed on Android 12 or higher. See…
100
votes
17 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,344
  • 2
  • 12
  • 14
92
votes
2 answers

List of Android permissions normal permissions and dangerous permissions in API 23?

Which permissions need for requesting permissions at run time of API 23?
90
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,596
  • 2
  • 15
  • 18
87
votes
7 answers

Android Studio two flavors with different manifest files

I'm having issues with defining two different manifest files for my flavors in Android Studio. This is my current project structure: The AndroidManifest.xml in the free flavor looks like this:
Marcus
  • 6,697
  • 11
  • 46
  • 89
87
votes
4 answers

Setting launchMode="singleTask" vs setting activity launchMode="singleTop"

I have an app that is very hierarchical (activities are similar to League > Team > Position > Player) and so I've made each activity singleTop in order to keep navigation sensible and to prevent duplicate instances. Now I'm making my second app…
NSouth
  • 5,067
  • 7
  • 48
  • 83
86
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
  • 37,586
  • 78
  • 186
  • 264
85
votes
13 answers

Android X: tools:replace specified at line: for attribute, but no new value specified

I have tried many solutions on this website but still, the problem is not solved. The issue is due to Android X library. When I added Android X, this issue was resolved but it opened up new issue. How to fix this issue? Earlier this error was…
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
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,162
  • 1
  • 17
  • 29
80
votes
12 answers

Android EditText Transparent Background

I want to have a transparent background for Android EditText widget. How is that possible?
Sultan Saadat
  • 2,268
  • 6
  • 28
  • 38
78
votes
8 answers

Manifest merger failed targeting Android 12

Using Android Studio 4.2.1, after changing sdk target to Android 12 in my build.gradle file, I am getting a Manifest merger failed with multiple errors, see logs error. The errors shown in the Merged Manifest tab are as follows: Merging Errors:…
SVP
  • 2,773
  • 3
  • 11
  • 14
78
votes
13 answers

How to autoincrement versionCode in Android Gradle

I'm experimenting with new Android build system based on Gradle and I'm thinking, what is the best way to autoincrease versionCode with it. I am thinking about two options create versionCode file, read number from it, increase it and write it back…
sealskej
  • 7,281
  • 12
  • 53
  • 64
77
votes
10 answers

In AndroidManifest: Expecting android:screenOrientation="unspecified"

Android Studio 3.6. I want my app to be always in portrait mode. So in my AndroidMainfest.xml:
Alexei
  • 14,350
  • 37
  • 121
  • 240