R RJB Active Member Licensed User Longtime User Jan 22, 2021 #1 In Pages I want to partially dim the screen (Dim PH As Phone / PH.SetScreenBrightness) then later brighten it (PH.SetScreenBrightness(1)) when the user touches/ taps the screen, whatever page is being shown and wherever they touch/ tap. Possibly I'm missing something obvious but is there a way to do that? Thanks
In Pages I want to partially dim the screen (Dim PH As Phone / PH.SetScreenBrightness) then later brighten it (PH.SetScreenBrightness(1)) when the user touches/ taps the screen, whatever page is being shown and wherever they touch/ tap. Possibly I'm missing something obvious but is there a way to do that? Thanks
R RJB Active Member Licensed User Longtime User Jan 23, 2021 #2 something like the .net IMessageFilter? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #3 Add this to the activity module: Code: Public Sub User_Interaction Log("interaction") End Sub #if Java @Override public void onUserInteraction() { processBA.raiseEventFromUI(null, "user_interaction"); } #End If Upvote 0
Add this to the activity module: Code: Public Sub User_Interaction Log("interaction") End Sub #if Java @Override public void onUserInteraction() { processBA.raiseEventFromUI(null, "user_interaction"); } #End If
R RJB Active Member Licensed User Longtime User Jan 24, 2021 #4 Thank you, just need to remove the 93 calls to 'CallSub(B4XPages.MainPage, "Bright_Screen")' now !!!! Upvote 0
Thank you, just need to remove the 93 calls to 'CallSub(B4XPages.MainPage, "Bright_Screen")' now !!!!
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #5 RJB said: CallSub(B4XPages.MainPage, "Bright_Screen") Click to expand... This is not needed!!! B4XPages.MainPage.BrightScreen Upvote 0
RJB said: CallSub(B4XPages.MainPage, "Bright_Screen") Click to expand... This is not needed!!! B4XPages.MainPage.BrightScreen