Show/hide slider by Send Intent

HCC

Member
Brightness slider macro: Go to MacroDroid template store (App only) and search for id: 5416

Hi,
I want to use "Send Intent" ..

MacroDroid/(blue tab =Actions)/Connectivity/Send Intent

.. to hide the brightness slider
when tapping the Floating Button (see image).

Usage:
First tap : show the Brightness slider
Second tap: hide the Brightness slider

I can show the Brightness slider by "Send Intent" code without
problems but how can I hide the Brightness slider
by "Send Intent"?

I tried the "Send Intent" Action, see "A3" (in image):

android.intent.action.HIDE (=not working)
android.intent.action.CLOSE (=not working)
Intent.ACTION_CLOSE_SYSTEM_DIALOGS (=not working)
hide (=not working)
close (=not working)


What must I enter in the A3 field to hide the
Brightness slider using "Send Intent"?
 

Attachments

  • Send Intent.jpg
    Send Intent.jpg
    39.8 KB · Views: 9
  • Intent_brightness_slider.jpg
    Intent_brightness_slider.jpg
    30.4 KB · Views: 8
  • Brightness_slider.jpg
    Brightness_slider.jpg
    62.8 KB · Views: 8
Last edited:

Endercraft

Moderator (& bug finder :D)
Brightness slider macro: Go to MacroDroid template store (App only) and search for id: 5416

Hi,
I want to use "Send Intent" ..

MacroDroid/(blue tab =Actions)/Connectivity/Send Intent

.. to hide the brightness slider
when tapping the Floating Button (see image).

First tap : show the Brightness slider
Second tap: hide the Brightness slider

I can show the Brightness slider by "Send Intent" code without
problems but how can I hide the Brightness slider
by "Send Intent"?

I tried the "Send Intent" Action, see "A3" (in image):

android.intent.action.HIDE (=not working)
android.intent.action.CLOSE (=not working)
Intent.ACTION_CLOSE_SYSTEM_DIALOGS (=not working)
hide (=not working)
close (=not working)


What must I enter in the A3 field to hide the
Brightness slider using "Send Intent"?
what is the show intent you are using ?
 

HCC

Member
Go to MacroDroid template store (App only) and search for id: 5416
-That's the show intent I'm using.
 

Dm114

Well-known member
Brightness slider macro: Go to MacroDroid template store (App only) and search for id: 5416

Hi,
I want to use "Send Intent" ..

MacroDroid/(blue tab =Actions)/Connectivity/Send Intent

.. to hide the brightness slider
when tapping the Floating Button (see image).

Usage:
First tap : show the Brightness slider
Second tap: hide the Brightness slider

I can show the Brightness slider by "Send Intent" code without
problems but how can I hide the Brightness slider
by "Send Intent"?

I tried the "Send Intent" Action, see "A3" (in image):

android.intent.action.HIDE (=not working)
android.intent.action.CLOSE (=not working)
Intent.ACTION_CLOSE_SYSTEM_DIALOGS (=not working)
hide (=not working)
close (=not working)


What must I enter in the A3 field to hide the
Brightness slider using "Send Intent"?
It hides automatically when you click anywhere on the screen as it is intented to manually adjust brightness.
 

Dimlos

Well-known member
This intent only works with older operating systems and will not work if you change to a newer device.
 

HCC

Member
This intent only works with older operating systems and will not work if you change to a newer device.

I did a little research. It works with Android 7 and Android 12 (!)

in Android 7 the Class name is:
com.android.systemui.settings.BrightnessDialog
in Android 12 the Class name is:
com.android.systemui.settings.brightness.BrightnessDialog

How to find the "brightness slider" class name ?
1) download a systemviewer-app, ( e.g. com.liuzh.deviceinfo ) in playstore.
2) then go to the Tab : APPS
3) in the dropdown-box choose : "System-Apps"
4) search for: com.android.systemui
5) in the menu choose : show AndroidManifest.xml
6) download it (the download folder is : Downloads)
7) open it (e.g. with Notepad) and search for: brightness
-Now you will find something like:
com.android.systemui.settings.brightness.BrightnessDialog
-Now the intent works with newer operating systems than android 7.
 
Last edited:
Top