Android Question How to display a certain layout when service_start is begin to active?

M.LAZ

Active Member
Licensed User
Longtime User
i want to display a layout when service_start is activated .
 

udg

Expert
Licensed User
Longtime User
In Service_Start you may want to check if the Activity whose layout is going to change is actually running so,
B4X:
If IsPaused(ActivityToCheck) = False Then CallSub(ActivityToCheck,"ChangeLayout")
In the target activity (ActivityToCheck in above code) you deploy a simple sub like:
B4X:
Sub ChangeLayout
  Activity.LoadLayout("mynewlayout")
end sub
Didn't test myself but should work.

Umberto
 
Upvote 0
Top