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