Hi, What I infer from your code is that you haven't added the APN first into the database. You need to first write the APN settings into the database before updating the preferred APN code. The following links will be helpful in making you understand and resolve the issue:
http://blogs.msdn.com/b/zhengpei/archive/2009/10/13/managing-apn-data-in-google-android.aspx http://stackoverflow.com/questions/7867079/android-apn-enforcement Moreover, it is indeed true that from Android 4.0 onwards, apps need root permissions to modify APN Settings. But if you are developing your app for Android versions prior to Android 4.0 then you need not worry. :) I hope this solves your problems. Warm Regards On Tue, Jan 24, 2012 at 9:10 PM, Tom <t...@malcolmson.ca> wrote: > I haven't actually tried it myself so I can't answer your > question definitively, but my understanding was that it is no longer > possible to write any elements of the access point. > > See this issue: > http://code.google.com/p/android/issues/detail?id=24227 > > -- > 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 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