Re: [android-developers] Re: How to set the preferred APN through code?
Thanks Sayed for the sample code. But unfortunately even that didn't work.
The 'insert' i.e. the line:
========================================
getContentResolver().insert(PREFERRED_CONTENT_URI, values);
========================================
always returns null.
I'm using 2.3.3. Looks like there is something missing.
> Note that, as of Android 4.0, this is no longer possible.
We can at least change the individual APN values, right.
i.e. use the following line of code:
========================================
getContentResolver().update(Uri.parse("content://telephony/carriers"), values, blah, blah, blah);
========================================
Otherwise APNDroid won't work.
Thanks
On Tue, Jan 24, 2012 at 12:17 AM, Tom <tom@malcolmson.ca> wrote:
Note that, as of Android 4.0, this is no longer possible.The permission still exists, but any attempt to write the APN will fail.Presumably the carriers put pressure on Google to block this capability... too bad.--
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+unsubscribe@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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home