android - Launching APN settings activity on Lollipop -


i trying launch apn settings activity test application in lollipop.

i have used following code:

intent sendintent = new intent(settings.action_apn_settings); 

to launch apn settings activity.

the activity being launched screen not show apn list.

instead shows as:

access point name settings not available user

following logs:

from test application:

i/activitymanager(798): start u0 {act=android.settings.apn_settings flg=0x10000000 cmp=com.android.settings/.settings$apnsettingsactivity} uid 10066 on display 0 i/activitymanager(798): start proc 3273:com.android.settings/1000 activity com.android.settings/.settings$apnsettingsactivity i/activitymanager(798): displayed com.android.settings/.settings$apnsettingsactivity: +487ms 

from device settings:

i/activitymanager(798): displayed com.android.phone/.mobilenetworksettings: +395ms i/activitymanager(798): start u0 {act=android.settings.apn_settings cmp=com.android.settings/.settings$apnsettingsactivity (has extras)} uid 1001 on display 0 i/activitymanager(798): displayed com.android.settings/.settings$apnsettingsactivity: +190ms 

the difference found has extras....

what should contain in extras?

i hope, response..

i have found solution following way..

as mentioned in query difference "has extras".

sendintent.putextra("sub_id", subscriptionmanager.name_source_sim_source);

this subscriptionmanager class introduced in 5.1, , problem happening in 5.1 only.

i hope you...


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -