Tuesday, April 2, 2013

Modify the AndroidManifest File

Hello Friends!
 
I am using Eclipse to create Android Applications. So here is how you can do it step by step. [Note: If you don't use Eclipse then you just have to modify the AndroidManifest.xml file in your application]



1. In your package explorer tab (In the image to the left you) click on the AndroidManifest.xml
2. In the main window you will see a set of tabs at the bottom  (blue in the image. We find it easier (but also more prone to mistakes) to modify the .xml file directly, so click on that tab.
3. Now, all you have to do is update it to your needs. The most common problem is to change the activity, so in this example you can swap <activity ..... > .... </activity>  with the new one.

In short, two of the most important tags are:

  • Activity - describe the different activities your app contains and settings for them
  • Permissions - describe which features your application wishes to use that are not normally included (internet access for example)

If you want to know more about the manifest and what each of the fields means you can find more information  from the official android documentation here.

5 comments:

  1. Excellent and very useful post for android developers.Thanks for sharing it.

    android application development company

    ReplyDelete
  2. Excellent and very useful blog Sir .

    ReplyDelete
  3. HI Ankit

    Doing Great Job...
    learning new things all the people to.
    sharing what we have learned do only some people like u......

    ReplyDelete

Mastering Jetpack Compose: Key Methods for Efficient Android UI Development

Jetpack Compose is a modern toolkit for building native Android UI. It simplifies UI development by providing a declarative approach, making...