Noelkman Member Licensed User Longtime User Jun 7, 2017 #1 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.
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 Jun 7, 2017 #2 In the class Globals use: Dim act as activity Then in the class initialize: Code: Sub initialize ( a as Activity, ....) Act=a .... Then you call your class initialize sub like MyclassName.initialize(myActivityName,...) Upvote 0
In the class Globals use: Dim act as activity Then in the class initialize: Code: Sub initialize ( a as Activity, ....) Act=a .... Then you call your class initialize sub like MyclassName.initialize(myActivityName,...)