Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



140 posts

Master Geek
+1 received by user: 12


Topic # 102700 20-May-2012 10:31 Send private message

I am writing an Android program that reads the incoming sms number and returns the contact name from the internal contacts DB and speaks out something like "Incoming text from John".

Unfortunately I hit a snag as my wife's phone has started sending texts from 64271234567 instead of the usual 0271234567, other phones also seem to have multiple numbers like this.

Is there a way on the phone to turn it off? She has a samsung galaxy S2.

Cheers

Create new topic
20630 posts

Uber Geek
+1 received by user: 2063

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 627884 20-May-2012 10:48 Send private message

I'm a little confused by what you're actually after but SMS's are always sent in E164 format by the network. This isn't anything you can change in the phone.



140 posts

Master Geek
+1 received by user: 12


  Reply # 627912 20-May-2012 12:30 Send private message

Oh I guess it just strips the 64 out before it reaches the contacts list itself. I must be seeing the number that I have typed in myself = 027 in teh contacts list but it sends the 64 when sending a message.

Thanks

3993 posts

Uber Geek
+1 received by user: 1226

Trusted
Subscriber

  Reply # 627933 20-May-2012 14:09 Send private message

Some phones will only match on the last six or so digits. So whether its in +64 or 02x does not matter. Chances of having more than one number with same last 6 or so digits = very slim.




Chorus has spent $1.4 billion on making their ADSL broadband network faster. Why not spend a couple of hundred to make sure you are getting the most out of your connection?
Geekzone special price: $150* for master splitter install, normally $200+ through your ISP. Auckland and Waikato areas.
*Travel charges may apply. Additional costs may apply for complex installs.
I install - Naked DSL, DSL Master Splitters, VoIP, RBI Rural Broadband. Also a dealer for WorldxChange.
Need help in Auckland or Waikato? Click my email button, or email me direct: [my user name] at geekzonemail dot com

12192 posts

Uber Geek
+1 received by user: 862

Trusted
Subscriber

  Reply # 628045 20-May-2012 20:12 Send private message

Sort your phonebook out so they are all in +64 format and it shouldnt be a problem anymore?




Richard rich.ms

Awesome
4136 posts

Uber Geek
+1 received by user: 687

Trusted
Subscriber

  Reply # 628047 20-May-2012 20:18 Send private message

I store everything in + E164 format in my phone anyway.

That way when you are overseas and either roaming or using another SIM card, all your contacts work without making any changes for your location.




Twitter: ajobbins

368 posts

Ultimate Geek
+1 received by user: 1


  Reply # 628144 21-May-2012 01:50 Send private message

ajobbins: I store everything in + E164 format in my phone anyway.

That way when you are overseas and either roaming or using another SIM card, all your contacts work without making any changes for your location.


ditto



140 posts

Master Geek
+1 received by user: 12


  Reply # 628146 21-May-2012 06:39 Send private message

Thanks for the help. I ended up stripping back the incoming message to 6 numbers from the right and did the same to the contacts list. when loaded into the program. That meant it didn't matter what the prefix was :-) It now works.

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

Customs wanting power to force travellers to handover passwords and encryption keys
Created by nedkelly, last reply by JWR on 6-Mar-2015 14:47 (32 replies)
Pages... 2 3


Galaxy s6 announcement and owners thread
Created by Shoes2468, last reply by jeffnz on 5-Mar-2015 18:33 (102 replies)
Pages... 5 6 7


Considering Snap - do you rate them?
Created by gsmithnz, last reply by deadlyllama on 5-Mar-2015 22:15 (38 replies)
Pages... 2 3


Whats your USB charging solution?
Created by macuser, last reply by Journeyman on 4-Mar-2015 17:52 (37 replies)
Pages... 2 3


Privacy concerns on returning faulty microSDXC
Created by dpw, last reply by andrewbnz on 3-Mar-2015 22:41 (34 replies)
Pages... 2 3


Recommendations for store bought gaming hard drive for $1500
Created by DebP, last reply by Lias on 6-Mar-2015 15:32 (31 replies)
Pages... 2 3


Why does Lightbox have a suicide wish?
Created by dafman, last reply by MikeAqua on 6-Mar-2015 11:44 (110 replies)
Pages... 6 7 8


Metservice website suffers under stress.
Created by surfisup1000, last reply by surfisup1000 on 6-Mar-2015 15:29 (14 replies)


Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.