Android 5.0 (L) - Check data Roaming Setting -


i have problem identifying data roaming setting in android l. in previous versions of android, able access either settings.secure or settings.global (depending on android version), , setting.

but now, on android l, no longer works. whether data roaming on or off, return settings.global 0.

android l supports multi sim out of box, so, new manager created handle this: subscriptionmanager. subscription manager, handles several settings of several sim cards in form of subinforecord classes. can retrieve settings per sim card.

however, dataroaming filed inside class 0 well.

does know how can achieved on new api?

my app system app comes embedded in phones factory so, should able access apis available.

however, i've spent long time looking in source code found nothing. in settings.global class there's no indication that setting no longer works on android.

does have clue on setting moved to?

thanks in advance!

check devicepolicymanager.setglobalsetting documentation can called device owner app. app installed device owner ? if not can check following links

do this

    devicepolicymanager manager = (devicepolicymanager) getsystemservice(context.device_policy_service);     manager.setglobalsetting(<admin_component>, settings.global.data_roaming, <value>); 

admin_component: component instance

value: "0" disable or "1" enable


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -