Registering Activities and Other Application Components

Each Activity within the application must be defined within the Android manifest file with an <activity> tag. For example, the following XML excerpt defines an Activity class called AudioActivity:

<activity android:name="AudioActivity" />

This Activity must be defined as a class within the com.androidbook.multimedia package.That is, the package specified in the <manifest> element of the Android manifest file.You can also enforce scope of the activity class by using the dot as a prefix in the Activity name:

<activity android:name=".AudioActivity" /> Or you can specify the complete class name:

<activity android:name="com.androidbook.multimedia.AudioActivity" />

Easy Software Profits

Easy Software Profits

Here's How Anyone Can Start, Build and Run their Own Successful Software Empire Without Knowing the First Thing About Programming, Scripting Or Any 'Coder' Stuff. There is no doubt about it software sells. Software has a high percieved value and it solves problems for people.  A claim that can't always be made for PDF books, Video products and the like.

Get My Free Ebook


Post a comment