I use the below code to open data-roaming setting page.

if(bv<Build.VERSION_CODES.JELLY_BEAN)
        {
            Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
            ComponentName cName = new 
ComponentName("com.android.phone","com.android.phone.Settings");
            intent.setComponent(cName);
            startActivityForResult(intent,10);
        }
        else
        {
            Intent intent = new Intent();
            
intent.setAction(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS);
            startActivityForResult(intent,10);
        }   

and it works fine on the most of the device.but on some devices it opens the 
settings page but data roaming option is not available in that page.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to