Check Android device charge source

1
2
IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
Intent batteryStatus = context.registerReceiver(null, ifilter);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
When the user device is charging itself, it is recommended to update your application settings if any,
such as maximizing your refresh rate whenever the device is connected. It can be done as this.


#performance #hint #android #charge #chargeSource #battery #usb


#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.