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

5496 questions
1411
votes
32 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
  • 14,135
  • 3
  • 13
  • 4
985
votes
31 answers

How to Disable landscape mode in Android?

How can I disable landscape mode for some of the views in my Android app?
lostInTransit
  • 68,087
  • 58
  • 193
  • 270
477
votes
86 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
  • 13,773
  • 18
  • 48
  • 69
471
votes
10 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
  • 4,881
  • 4
  • 21
  • 26
453
votes
19 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
  • 4,765
  • 5
  • 18
  • 21
328
votes
15 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
  • 13,880
  • 16
  • 53
  • 93
307
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
  • 51,868
  • 51
  • 228
  • 375
273
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,239
  • 11
  • 38
  • 57
254
votes
11 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,411
  • 3
  • 18
  • 24
199
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?
Sharj
  • 14,733
  • 12
  • 55
  • 87
198
votes
10 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,548
  • 4
  • 17
  • 26
194
votes
11 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
  • 2,835
  • 4
  • 15
  • 20
188
votes
9 answers

How can you get the Manifest Version number from the App's (Layout) XML variables?

I would like to have a way to reference the project's manifest version number in the main part of the code. What I have been doing up until now is to link the version number in a String XML file to the manifest (@string/Version). What I would like…
PearsonArtPhoto
  • 35,989
  • 16
  • 107
  • 136
180
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
  • 5,980
  • 8
  • 28
  • 33
167
votes
8 answers

Android studio 3.5 refactor issue

I just updated my studio with android studio 3.5 and now when I am trying to refactor AndroidManifest.xml file and it is refactoring my all app permission to the bottom of my file. Have any one faced this issue? Is there any solution for this…
Sagar Kacha
  • 7,242
  • 4
  • 14
  • 25
1
2 3
99 100