How to get started defined in other Android projects?

I have identified some common activities in a library project and want to reuse them in my working project.

I declared my library project as an Android library, using the fully qualified name Activity and declaring it in the AndroidManifest.xml of the new project. However, I get the message "Cannot find explicit class of activity" when the application starts.

Any other configurations I have to complete to get things started?

+4
source share
2 answers

Either your activity is not in your manifest, or there are some problems with the library project, as a result of which the activity class will not be included in the APK.

+1
source

You need to use Implicit Intent and Intent Filters , check out this blog post and Android documentation for more information.

I made a very simple example (quick and dirty, but working here): http://dl.dropbox.com/u/5289718/DummyIntent.zip

0
source

Source: https://habr.com/ru/post/1341519/


All Articles