Android Question Dialog or View

Noelkman

Member
Licensed User
Longtime User
Hi guys,
maybe a rookie question but I'm lost here. With B4A 7+ I have a App that has multiple Activitys.
Now from any of these Activitys I want to call pretty much the same Dialog with lots info that I want to prepare in a Class and Show from the calling Activity but I don't how to call with the Activity as parameter.
Does that make sense or is there a better way maybe with a view (same parameter problem) or whatever technique.

How is that working? Any help is really appreciated.
 

Cableguy

Expert
Licensed User
Longtime User
In the class Globals use:

Dim act as activity

Then in the class initialize:

B4X:
Sub initialize ( a as Activity, ....)
Act=a
....

Then you call your class initialize sub like

MyclassName.initialize(myActivityName,...)
 
Upvote 0
Top