Android Question Using CallSubDelayed into library

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hello,
I need to implement a technology similar to "StartActivityForResult", so I followed this thread to interact between two Activities: Interact

Now I need to do the same, but from an Activity to a Library.

So, I want to create a Library with an Activity and 2 buttons "Yes" and "No". Using "CallSubDelayed2", how do I return the text button from the library to the main activity?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I recommend you to use classes or static code modules for your library. Otherwise it may not work properly in debug mode.

You can implement everything in a class.
CallSubDelayed works in libraries. Don't use strings:
B4X:
CallSubDelayed("SomeActivity", ...) 'will not work as the package name of the library is different
CallSubDelayed(SomeActivity, ...) 'will work
 
Upvote 0
Top