Android Question Msgbox2 not working in release (stored in a code modul)

Karl Matzinger

Member
Licensed User
I'm using msgbox2 in a code module (this function is used from several activities) to have it on one position.

in debug it is working, but in release it always returns "cancel" without showing up.

As i understook, i should use Msgbox2Async instead.
But I can't use Msgbox2Async in a code module.

Is there any work around to have the (or any) msgbox2 in a code mudule?

Thx
Karl
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Msgbox should work from a code module however you should indeed avoid using it as it will cause bad things.

The best solution is to use a class instead of a code module. You can then initialize the class in each of the activities. It will allow you to share more features between the activities.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…