Question

I have an android project, that uses library project. How to add the activity from the Library project to the AndroidMAnifest.xml of the android project.

Était-ce utile?

La solution

Accessing the library project's activity is declaring the Activity with its package name in AndroidManifest.xml of Android project as below:

 <activity android:name="com.example.LibraryProjectActivity" android:screenOrientation="portrait"></activity>

Now you can access the library project's Activity.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top