Hello,

How can I get the information on this phone regarding its number, carrier,
etc?

I have tried this:

String names = "";

Uri contentUri = Uri.parse("content://telephony/carriers/");

Cursor cursor = null;
try
{
cursor = getContentResolver().query(contentUri, new String[]{"name"}, null,
null, null);
if (cursor != null)
{
while (cursor.moveToNext())
{
String name = cursor.getString(0);
names+= name + "\n";
}
}
}
catch (Exception ex)
{
//Handle exceptions here
}
finally
{
if (cursor != null) cursor.close();
}


tv.setText("TestActivity:\n"+names);

But no success.

I get on the emulator screen:
Android
TelKila

-- 
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

Reply via email to