I have splitted my application into several packages. Some of my classes which extends Activity is located under com.tmt.app and another Activity is in the package Dialogs. Both packages is located under the src folder, I noticed that in my Manifest file I specify the package name like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tmt.app"
android:versionCode="1"
android:versionName="1.0" >
which indicates that this manifest is relevant for the package com.tmt.app The relevant class is defined like this:
<activity
android:name=".PasswordDialog"
android:theme="@style/AboutTheme"
android:screenOrientation="portrait" >
</activity>
Which indicates that the class PasswordDialog is in the package com.tmt.app
How can I specify that this class is located under the package Dialogs ?
Thanks in advance!
Say you have two packages, like
com.oneandcom.two. Your manifest looks like:You will need to use the fully qualified name to reference an Activity from outside the package.
OR
If the second package is a subpackage like com.one and com.one.two, you’ll use: