Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidManifest.xml <manifest> package attribute has no namespace

Tags:

android

xml

From the O'Reilly book "Android Application Development " by Rick Rogers, John Lombardo, Zigurd Mednieks & Blake Meike, page 44:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.microjobsinc.mjandroid" android:versionCode="1"
    android:versionName="1.0">

The XML code above has the package attribute. However, in the rest of the XML, the remaining attributes all have a namespace.

Why do all of the attributes have a namespace except package?

like image 819
CW Holeman II Avatar asked Nov 14 '22 15:11

CW Holeman II


1 Answers

I think it may be because the package attribute is the full Java package name for the application and so is a Java concept not something specific to Android. It does stick out as unusual though but it is the correct way according to http://d.android.com/guide/topics/manifest/manifest-element.html

like image 150
Intrications Avatar answered Jan 11 '23 23:01

Intrications