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
1562
votes
36 answers

How can you get the build/version number of your Android application?

I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI. Do I have to do something with AndroidManifest.xml?
Fahad Ali Shaikh
  • 15,645
  • 3
  • 15
  • 4
1051
votes
31 answers

How can I disable landscape mode in Android?

How can I disable landscape mode for some of the views in my Android app?
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
560
votes
13 answers

How to add manifest permission to an application?

I am trying to access HTTP link using HttpURLConnection in Android to download a file, but I am getting this warning in LogCat: WARN/System.err(223): java.net.SocketException: Permission denied (maybe missing INTERNET permission) I have added…
rob
  • 5,771
  • 4
  • 23
  • 26
550
votes
94 answers

Error type 3 Error: Activity class {} does not exist

I have an IntelliJ Android project, that I successfully imported to Android Studio 0.4.0. It works perfectly if I don't change anything in manifest. However, when I want to change the launcher activity and run, it fails with this error: Launching…
Jacob
  • 14,949
  • 19
  • 51
  • 74
502
votes
20 answers

How to change an Android app's name?

Is there a way to change the name (Launcher App Label) of an app without creating a new project? Note: Name of the App and The label shown on the Launcher Icon on Home Screen on Mobiles can be different. Example: On the home page in my Mobile where…
au789
  • 5,255
  • 5
  • 20
  • 21
368
votes
18 answers

How to view AndroidManifest.xml from APK file?

Is it possible to view Androidmanifest.xml file? I just changed the extension of the apk file to zip. This zip file contains the Androidmanifest.xml file. But I am unable view the contents of Androidmanifest.xml. It is fully encrypted. How can I…
bharath
  • 14,283
  • 16
  • 57
  • 95
313
votes
5 answers

Android - Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23

I am getting the following tool tip in AndroidManifest.xml: App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent-filler. See issue explanation for more details. Adds deep links to get your app into…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
291
votes
13 answers

versionCode vs versionName in Android Manifest

I had my app in the android market with version code = 2 and version name = 1.1 However, while updating it today, I changed the version code = 3 in the manifest but by mistake changed my version name to 1.0.1 and uploaded the apk to the market. Now,…
user838522
  • 3,821
  • 3
  • 23
  • 24
274
votes
8 answers

How to set different label for launcher rather than activity title?

This question has been asked before - but with no satisfying answer at all! So I'm trying it again. I want to give my application launcher icon (the one that is displayed on the startscreen!) a different, shorter caption. It seems the launcher takes…
Zordid
  • 10,451
  • 11
  • 42
  • 58
236
votes
12 answers

Get Android .apk file VersionName or VersionCode WITHOUT installing apk

How can I get programmatically get the version code or version name of my apk from the AndroidManifest.xml file after downloading it and without installing it.
Big.Child
  • 2,948
  • 4
  • 19
  • 26
233
votes
38 answers

android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify

After upgrading to android 12, the application is not compiling. It shows "Manifest merger failed with multiple errors, see logs" Error showing in Merged manifest: Merging Errors: Error: android:exported needs to be explicitly specified for .…
Ashique Bava
  • 2,486
  • 2
  • 9
  • 21
230
votes
13 answers

How to change Android version and code version number?

How to change Android version and code version number Android Studio? I want to change apk file (app) on Google Play and I need to change Android version and code version number. I tried with this in AndroidManifest.xml file in Android…
Marko Stojkovic
  • 3,255
  • 4
  • 19
  • 20
224
votes
7 answers

How can I 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
  • 986,068
  • 189
  • 2,389
  • 2,491
213
votes
4 answers

Register Application class in Manifest?

I have one Application class to keep the global state of my application. But I'm unable to register it in Manifest file? Any idea how to do this?
Sharjeel
  • 15,588
  • 14
  • 58
  • 89
198
votes
16 answers

How to parse the AndroidManifest.xml file inside an .apk package

This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)? This binary format is not discussed in the documentation here. Note: I want to…
jnorris
  • 6,350
  • 8
  • 30
  • 33
1
2 3
99 100