Well, this code perfectly works for another setting from the same Android docs page I gave:
from jnius import autoclass
from android import mActivity
System = autoclass('android.provider.Settings$System')
caps = System.getInt(mActivity.getContentResolver(), System.
SCREEN_BRIGHTNESS)
self.mylabel.text = str(caps)
But if I only replace SCREEN_BRIGHTNESS with TEXT_AUTO_CAPS, it crashes. I can't understand why these two settings from the same 'android.provider.Settings$System' behave differently.
четверг, 2 февраля 2023 г. в 00:20:42 UTC+3, Robert: