Duque Active Member Licensed User Longtime User Feb 13, 2024 #1 This worked fine up to android 11 I am referring to this same case 6 years later. B4X: Dim intent As Intent intent.Initialize("android.intent.action.CLOSE_SYSTEM_DIALOGS", "") 'close the notifications drawer Dim p As Phone p.SendBroadcastIntent(intent) Don't scold me, I spent the whole day reading I'm sorry I didn't find the solution, help!!!
This worked fine up to android 11 I am referring to this same case 6 years later. B4X: Dim intent As Intent intent.Initialize("android.intent.action.CLOSE_SYSTEM_DIALOGS", "") 'close the notifications drawer Dim p As Phone p.SendBroadcastIntent(intent) Don't scold me, I spent the whole day reading I'm sorry I didn't find the solution, help!!!
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2024 #2 This was a hack and it doesn't work in Android 12+. There isn't any alternative. Upvote 0
Duque Active Member Licensed User Longtime User Feb 13, 2024 #3 As other applications do, for example WhatsApp, I only want to bring my application to the front, when a ButtonAction is clicked This didn't work for me Upvote 0
As other applications do, for example WhatsApp, I only want to bring my application to the front, when a ButtonAction is clicked This didn't work for me
Erel B4X founder Staff member Licensed User Longtime User Feb 14, 2024 #4 You don't need to close the notification drawer yourself. It will be closed automatically on new versions of Android. Upvote 0
You don't need to close the notification drawer yourself. It will be closed automatically on new versions of Android.