How to add activity from Library project to the android project?
-
13-07-2021 - |
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.
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
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow