- Home /
create android plugin in unity?
`I need to create a plugin that can detect if the night mode of the cell phone is activated, I already try everything but I did not achieve anything, someone has an idea of how I could create this plugin, I would appreciate it.
I use the
'AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);'
but nothing returns, i don't know if it is because it is based on appcompat and you need the theme
Theme.AppCompat.DayNight, android: configChanges = "uiMode">
in the manifest.
And I don't know how to set it if someone knows, tell it, i use unity 2019.4.1f1
Your answer
![](https://koobas.hobune.stream/wayback/20220613001554im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Remove the make a phone call permission (Android) 0 Answers
correct approach for using e.g. three android plugins 0 Answers
Android Studio Integration with Unity 3D 0 Answers
How do I add a custom icon to an android game? 0 Answers
dll is not allowed to be included or could not be found" error unity3d for android 8 Answers