cancel
Showing results for 
Search instead for 
Did you mean: 

Reducing the minimum value of display brightness

mrgzadeh
Honored Guest
Dear Developers,

For my application, I need to dim the mobile display way more than what settings of GearVR let us do. I am wondering how is it possible? Where in the SDK should I enter or adjust my required brightness value?

Thanks!
Best Regards,
9 REPLIES 9

cybereality
Grand Champion
Can you just do this inside your app (for example using a full-screen effect)?
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

mrgzadeh
Honored Guest
"cybereality" wrote:
Can you just do this inside your app (for example using a full-screen effect)?


I do it in my app, when I run it, it is still brighter than the value I have set. I think the brightness of display is overridden by Oculus home or a higher level control. Is this right?

cybereality
Grand Champion
Is this a Unity or native app?
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

mrgzadeh
Honored Guest
"cybereality" wrote:
Is this a Unity or native app?


It is a native app.

cybereality
Grand Champion
I did a quick search and found this code:

Window window = activity.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = 0.1f; // float between 0 and 1
window.setAttributes(lp);

Does that help?
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

mrgzadeh
Honored Guest
"cybereality" wrote:
I did a quick search and found this code:

Window window = activity.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = 0.1f; // float between 0 and 1
window.setAttributes(lp);

Does that help?


Thanks a lot! I will try it. But I am wondering where to put this code?

cybereality
Grand Champion
I actually am not that familiar with Android development, so please feel free to search on your own.

Here is one article I found that may give you some ideas:

http://android-er.blogspot.com/2011/02/ ... tness.html
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV

MetaQuestSupport
Community Manager
Community Manager

Bonjour ! 

 

Merci pour votre message ! Nous sommes désolés d'apprendre que vous deviez faire face à un problème de piratage de votre addresse email.

 

Afin de régler le problème au plus vite pour vous, nous devons vous transférer à notre équipe de comptes via le Support par email. Ils se chargeront de changer votre adresse email manuellement sur votre compte. Nous pouvons ouvrir un ticket d'assistance pour vous ! Pourriez-vous nous transmettre les informations suivanets : 

 

  • Nom 
  • Prénom 
  • Adresse email de contact 

 

Merci d'avance ! 

If you're the author of a thread, remember to mark a reply as the Accepted Solution to help others find answers!

Pour précision, envoyez nous bien ces informations par DM! 

If you're the author of a thread, remember to mark a reply as the Accepted Solution to help others find answers!