Android Question how to create activity in libraries to use in the app

Roberto P.

Well-Known Member
Licensed User
Longtime User
I created a small library to manage related activity in some form. I would like to make small functional modules in libraries for use in various app.


I call these forms in an app (with startActivity) but the system generates this error:

upload_2015-9-16_17-7-15.png


Mistake or something you can not do this?
 

warwound

Expert
Licensed User
Longtime User
Have you created an Activity entry in your manifest for the Activity that's in your library?
If not then that might explain the (Activity?) class not being found.

The manifest syntax is:

B4X:
AddApplicationText(<activity android:name="my.library.package.name.myclassname"/>)
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi Erel,
this makes you lose the advantage of creating a standalone library.

There is another way to create basic modules (items, customers, etc.) to use eg create complete functional modules to be reused in different parts?
thanks
 
Upvote 0
Top