HTC Droid Eris :: Contact Phone Number Format
Jun 6, 2010
It is my first smartphone. I put in all my contacts manually so that I could get the feel of the phone and learn the basics. On all my previous stupid phones, the contact phone number automatically formated to 901-555-1212. With the Eris it is 9015551212. Anyway to change this? I have searched other threads with the same question but no one ever replies. I have search the net with no luck. Should I just take it that there is no way to automatically change this. I have gone through and put in the extra ticks between the numbers manually but that is a pain in the arse.
View 8 Replies
Apr 25, 2010
In Android I can get phone numbers of all the contacts without any problem. Tha problem is that for most users some numbers are stored as 'local' numbers, meaning that they dont have the country code included. For example, if the user lives in US and he has 2 contacts:
1) John - 555-123-1234 (local) (starting 1 not showing)
2) Jane - 44-123456787 (england phone number)
The question is: How do I get all the numbers in an international format, when some of the numbers doesnt include the country code?
View 2 Replies
View Related
Feb 12, 2010
I'd like to know whether it's possible to have phone numbers converted
into international format when a call is outgoing.
For instance, if a french user (sorry it's the only format i know i
won't make a mistake :-) try to call with the national format :
01.47.12.34.56 then a method will convert it into international format
like this : +33.1.47.12.34.56
I've looked into the doc of the PhoneNumberUtils but i don't know if
there is a method doing what i want.
View 1 Replies
View Related
Mar 25, 2010
While using the speed dial widget that comes with the Eris, is there a way to put two contacts of the same person in, but with different numbers?For example,I want both my fiance's cell and his work number in those 9 slots, but I can only choose one as the default and if I go to add him in another slot, he isn't even available as a choice under my People.I can make him a wholly separate contact for his work info obviously, but I was just wondering if there was a sleeker way?
View 1 Replies
View Related
Apr 16, 2010
Is there a dialer that will let me choose which number to ring from a contact directly (long press ?) ?
Going to a contact to choose is getting annoying !
View 5 Replies
View Related
May 26, 2010
I am not sure if this came up in one of the topics, but I may have missed it.
For the past week, I noticed some of my contact priority number was defaulting to the number I least call. This morning, while trying to figure how to make priority changes, I noticed it was due to linking it to facebook.
I linked my wife's info with her facebook and the priority number (mobile) pushed it to her home number information she has on her facebook account. So instead of me just going to click on my wife's name or say a command to call wife, I have to scroll to find the number I want to call.
I there a fix for this to let us set the priorities?
View 5 Replies
View Related
Jul 11, 2012
My problem is: I am developing one applcation , In which When I enter phone number in EditText box I need it to be format that number to US phone format like (444) 555-6666. How to get those braces and - automatically while entering the number.
View 4 Replies
View Related
Jan 16, 2010
I had mounted my sd card to transfer files between pc (XP) and eris.
i correctly unmounted from pc (safely remove hardware) and then stopped file sharing on eris.
i took the card out and put in a different one (i don't have a card reader and was trying to transfer some stuff).
when i tried to put the original card back in, my finger slipped as i was pushing it in and it got like halfway in and then popped back out.
the eris saw this as an unsafe removal.
now, it keeps telling me "the sd card is blank or using an unsupported .." something. if i tap on the notification, it just takes to me a window to format it. i keep saying yes to format, but it never formats.
i've tried formatting from settings and tried mounting it again and formatting from the pc. when i do that, the pc says that the drive size is 1.08 TB (?!?!?). this is the 8GB sd card that comes with the eris. and it also won't let me format.
what gives? i've tried taking it out and putting it back in. it keeps saying unsafe removal but the option to unmount is grayed out and i can't choose it.
i tried taking it out, turning off the eris, putting the card in and turning back on. still nothing.
what's going on here?
View 6 Replies
View Related
Jul 14, 2010
I cracked my screen and got a replacement. I am trying to activate the old phone after I have preformed a factory reset. It asked me to input a phone number for activation. I do not want to do this. what are my options.
View 5 Replies
View Related
Apr 12, 2010
I noticed when I search for a business or whatever and google finds a phone number, I click on it and it thinks it is a web page. It should open up the dialer and call the number.
View 4 Replies
View Related
Feb 14, 2010
My BB had a cool feature that I have not found in the Eris yet. It would automatically recognize phone numbers in emails. It turned them into a link. When you clicked it, it would dial the number. Saves you from having to remember it or copy/paste into phone app.
View 4 Replies
View Related
Dec 4, 2009
The semi-standard way of getting a contact name from a phone number is to use Contacts.Phones.CONTENT_FILTER_URL and append the phone number, as in the following sample code. This works fine on Android 1.6, but not on 2.0 -- is there a way to perform this function that works in all versions of the Android API? private String getContactNameFromNumber(String number) {// define the columns I want the query to return String[] projection = new String[] { Contacts.Phones.DISPLAY_NAME, // encode the phone number and build the filter URI Uri contact Uri = Uri.withAppendedPath (Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number)); // query timeCursor c = getContentResolver().query(contact Uri, projection, null,null, null);// if the query returns 1 or more results}
View 2 Replies
View Related
Jul 29, 2010
I am getting contact details for a given phone number using the following code:
Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNum));
Cursor cursor = context.getContentResolver().query(uri,null,null,null,null);
There is a case though when the cursor contains 3 records with the same phone number and display name. Can you please suggest an explanation or possible reason for that?
View 1 Replies
View Related
Oct 26, 2009
how I can add more than one phone number to a contact.
View 1 Replies
View Related
Feb 1, 2010
I am trying to get the sender's name from the contacts database using a content provider. The problem is I don't know how to implement it. Like now I can only pull the phone number from the smsMessage. I need to check to see if the phone number that is calling is in the users contacts first and if it is display the name if it is not then display the number.
View 1 Replies
View Related
Aug 5, 2010
I have an Android 2.1 device (HTC Incredible). My app, however, must be compatible with early (pre SDK 5) devices, so I am using the deprecated format of filter URI:
Uri contactUri = Uri.withAppendedPath(Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number));
Cursor C = context.getContentResolver().query(contactUri , null, null, null, null));
The number is of the form 15555551212. This fails to find the Contact, at least on my device. However, changing to the new (SDK 5 and later) ContactsContract format URI
Uri contactUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));
Cursor C = context.getContentResolver().query(contactUri , null, null, null, null));
results in success. Originally, the corresponding number in the Contact was in the format +1 555 555 5555, but I changed it to exactly match the input number 15555555555 and the old format URI still fails. In both cases, the new format URI succeeds. Does anyone have any thoughts as to why this is the case?
View 1 Replies
View Related
Feb 22, 2012
how to get phone number from contact to textbox...i try this:
Intent i = new
Intent(android.content.Intent.ACTION_PICK);
i.setType(ContactsContract.CommonDataKinds.Phone.C ONTENT_TYPE);
startActivityForResult(i,request_Code);
txtPhoneNo.setText(i.toString());
but i got something like: Intent {act=android.intent} and not the phone number...how to get the phone number into the textbox ?
View 1 Replies
View Related
May 31, 2010
Since the 2.1 OTA, I noticed in my contacts that it shows ALL phone numbers as numbers to send messages to.Previously, message numbers were all set to just the mobile numbers. I don't see any easy way to fix this.
View 5 Replies
View Related
Sep 23, 2010
I was wondering if anyone knows any good apps to disguise my phone number so I can prank call some of my friends with it. I would love to be able to record the conversation but that isn't a necessity I just want to fake my number.
View 10 Replies
View Related
Dec 21, 2009
Is there a way to add a phone number from your Contacts to a text message, without attaching the contact as a vCard? Some of my friends can't get the attachment and I just want to be able to copy and paste the number into the text body.
View 2 Replies
View Related
Dec 27, 2009
is there a way to turn off vibrate on the phone number pad.so far i dont believe you can but i might not be looking in the right spot?
View 2 Replies
View Related
Jul 6, 2009
What I'm trying to do, is to get the corresponding contact to a phone number. It works perfect if the number is stored in the contacts in the following format: +<country code><area code><number> But not all numbers are stored this way. Most are without the country code or with "00" instead of "+". Do I have to parse the number by myself and set up a corresponding WHERE clause for the query, or is there anything I can't find in the internet to get this one done by the framework?
View 4 Replies
View Related
Sep 14, 2010
In my app, user writes a phone number, and I want to find the contact name with that phone number? I usually search the contacts like this:Cursor cur = getContentResolver().query (ContactsContract.Contacts.CONTENT_URI, null, null, null, null); But I do this to access all contacts. In this app I only want to get the contact name of the given phone number. How can I restrict the query? Or do I have to go trough all contacts and see if any has the given phone number? But I believe that this can be very slow this way.
View 1 Replies
View Related
Nov 8, 2009
For android 2.0, how to get a list of all contact's phone number and email? I have an app which works fine for 1.6. Now it is broken for 2.0 Droid. If you could point me an example to get all contact info, I really appreciate it. Previously, I used People.Contect_URI. now it is deprecated and return me nothing. I went through samples but failed to find how to do it in 2.0.
View 18 Replies
View Related
Jun 12, 2010
I just got my Desire a few days ago, and so far i am very pleased with it (coming from a Nokia N95 8GB). I do find the contact handling somewhat counter intuitive however. For example , i have some contacts from facebook for which i have no other contacts created, but i need to add additional information (in particular phone numbers). I do not seem to be able to add information to a facebook contact. Do i really need to manually create another contact, then manually give it the same name and then link it to the facebook profile in order to have a place to add the phone number?
View 7 Replies
View Related
Jun 20, 2010
I would like to retrieve the name of a contact associated with an incoming telephone number. As I process the incoming number in the broascastreceiver having a String with the name of the incoming caller would help my project greatly. I would think this involves a query using the sql WHERE clause as a filter, but do I need to sort the contacts? An example or hint would be of great assistance.
View 1 Replies
View Related
Jul 30, 2010
I am trying to get the contact's phone number after I have retrieved their ID number from the built-in activity. However, whenever I query the database using the cursor in my code below -- I get zero rows returned even though there is a mobile number for the contact I have selected. Can anyone point me in a better direction or show an example of how to get the contact's phone number AFTER getting their userID?
My code:
private Runnable getSMSRunnable() {
return new Runnable() {
public void run() {
Intent i = new Intent(Intent.ACTION_PICK,
ContactsContract.CommonDataKinds.Phone.CONTENT_URI);
startActivityForResult(i, CONTACTS_REQUEST_CODE);......................
View 2 Replies
View Related
Jul 20, 2010
In my app, I get the name of the person calling from the contacts database and read it out. A user contacted me about a number in the format 123-456-7890 which doesn't work. I've tested this myself and can't see why it wouldn't work. The full code I'm using is available here, but the relevant part is below: Code...
View 2 Replies
View Related
Jul 28, 2010
I am learning android. I am trying to upadate contact number pro grammatically. Could anyone help me please how can I do that.My effort is: String lNumber = pCur.getString( pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)); Content Values values = new Content Values(); Uri lPhoneUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, ContactsContract.CommonDataKinds.Phone.NUMBER);values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, "45323333"));
getContentResover().update(lPhoneUri, values, ContactsContract.CommonDataKinds.Phone.NUMBER+"=?", new String[] { lNumber });
View 1 Replies
View Related
Jul 3, 2010
I'm trying to add a phone number to an existing contact on android 2.1. Im currently using:
ContentValues values = new ContentValues();
values.put(Phone.RAW_CONTACT_ID,cursor.getColumnIndex(Phone.CONTACT_ID));
String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '1'";
ContentResolver cr = getContentResolver();
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI,null, selection, null,ContactsContract.Contacts.DISPLAY_NAME+" COLLATE LOCALIZED ASC");
if (cursor.getCount() > 0) {cursor.moveToPosition(oldcontactid);
contactid = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));
values.put(Phone.RAW_CONTACT_ID,cursor.getColumnIndex(Phone.CONTACT_ID));
if (Integer.parseInt(cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {
Cursor pCur = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = ?",new String[]{contactid}, null);while (pCur.moveToNext()) {values.put(Phone.NUMBER,pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)));
values.put(Phone.TYPE, Phone.TYPE_MOBILE);}pCur.close();}}
Uri uri = getContentResolver().insert(Phone.CONTENT_URI, values);
but i get an error:
java.lang.UnsupportedOperationException: Unknown uri: content://com.android.contacts/data/phones
how would i be able to fix this?
View 4 Replies
View Related