M.LAZ Active Member Licensed User Longtime User Aug 24, 2014 #1 i want to display a layout when service_start is activated .
udg Expert Licensed User Longtime User Aug 24, 2014 #2 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
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