content://telephony/carriers is not part of the Android SDK. There's no telling what it does or does not do on any given device.
On Wed, Nov 24, 2010 at 12:41 PM, Dan <[email protected]> wrote: > I have code to get the current apn that looks like: > > private String m_apnString; > > private void updateApn(Context ctx) { > Cursor mCursor = > ctx.getContentResolver().query(Uri.parse("content://telephony/ > carriers"), new String[] {"apn"}, "current=1", null, null); > if (mCursor!=null) { > try { > if (mCursor.moveToFirst()) { > m_apnString = mCursor.getString(0); > } > } finally { > mCursor.close(); > } > } > } > > It seems to work on my test phone (htc hero) but I'm always getting > a null string back from the new htc incredible. > > I've found: > > http://androidforums.com/incredible-support-troubleshooting/73550-incredible-apn-quick-settings-bug-mobile-data-switch-issue.html > > and my test user that reported the issue says all her text messages > were erased. > > Has anybody else seen/resolved something like this? > > Thanks for your time! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

