Any ways to delete hyphen or spaces in phone no? - Galaxy S I9000 Q&A, Help & Troubleshooting

I use galaxy s i9000. I use google contact not phone contact.. My contact displays like 1-234-5678. How can I change it to display like 123456? Is there a way to delete hyphen from the phone number?
Sent from my GT-I9000 using XDA App
Edit: Solution:
What I tried:
I tried sort of everything. I exported my contacts from google in csv format. Opened the file in excel and did a search and replace of hyphen with ""(nothing). It worked but the leading 0's disappeared. Tried changing the cell formatting to text but sort of didn't work because I had international numbers with + signs and it messed up these numbers. Anyways I played around and at one moment fixed everything but when I saved the file in csv format excel did not allowed me to save.
My Simple Solution which worked for me and might work for you:
1. Export google contact in vcf format.
2. Open this file with word.
3. Search and Replace the hyphen with nothing. i.e. press ctrl+f, select "search and replace" and on search field put "-" and replace field put blank.
4. Press Replace All
5. Now Select all (Ctrl+A) and copy that into a blank notepad.
6. save the file as vcf format.
7. Upload vcf in google contact.
It worked for me..

You could always edit the contact and change it yourself... I did that.

I had almost 400 contacts. 2-3 hyphens in one number..i.e. approx. 800 hyphens..editing contact one by one is out of the question.

Good idea mate, thanks for sharing
Sent from my GT-I9000 using Tapatalk

Check out this post from krunalkp http://forum.xda-developers.com/showthread.php?t=1070222
Download the app
Edit - ah sorry thought I read not google contacts

regsujan said:
I use galaxy s i9000. I use google contact not phone contact.. My contact displays like 1-234-5678. How can I change it to display like 123456? Is there a way to delete hyphen from the phone number?
Sent from my GT-I9000 using XDA App
Edit: Solution:
What I tried:
I tried sort of everything. I exported my contacts from google in csv format. Opened the file in excel and did a search and replace of hyphen with ""(nothing). It worked but the leading 0's disappeared. Tried changing the cell formatting to text but sort of didn't work because I had international numbers with + signs and it messed up these numbers. Anyways I played around and at one moment fixed everything but when I saved the file in csv format excel did not allowed me to save.
My Simple Solution which worked for me and might work for you:
1. Export google contact in vcf format.
2. Open this file with word.
3. Search and Replace the hyphen with nothing. i.e. press ctrl+f, select "search and replace" and on search field put "-" and replace field put blank.
4. Press Replace All
5. Now Select all (Ctrl+A) and copy that into a blank notepad.
6. save the file as vcf format.
7. Upload vcf in google contact.
It worked for me..
Click to expand...
Click to collapse
I have my contacts saved to Phone. Somewhere along the line, due to some sort of restore (happened long ago & I can't remember) I found I had a hyphen "-" between digits (e.g. 041-234-5678) on all phone numbers.
If I manually edited each contact, backspacing the hyphen, it would also remove the digit prior to the hyphen. A real pain.
So I exported my contact list to SD Card. I then took that vcf file & edited it notepad, removing all hyphens in phone numbers. I made sure I only removed hyphens associated with phone numbers, as I also had hyphens that I wanted to keep, which were in the notes section of various contacts.
Next, I saved that file back to SD Card making sure I overwrote the old vcf file.
I then went back into Contacts on the phone & chose "Import from SD Card" from the menu.
All contacts restored without hyphens in phone numbers

Thanks for the info! I have been wondering about this!!

I wrote a bash script for removing unwanted hyphens (dashes) from telephone fields in the vcard you pass as argument. I hope this will help:
Code:
#!/bin/sh
if [ $# -ne 1 ]
then echo "Usage: cleanvcf FILENAME"
return
fi
F_INPUT=$1
C_LINE=""
cat "$F_INPUT" | while IFS="\n" read line
do
C_LINE=$(echo "$line" | grep TEL)
if [ -z $C_LINE ]
then echo "$line">> Cleaned_$F_INPUT
else
echo "$line" | sed -e s/-/""/g>> Cleaned_$F_INPUT
fi
done
return

motopico said:
I wrote a bash script for removing unwanted hyphens (dashes) from telephone fields in the vcard you pass as argument. I hope this will help:
Code:
#!/bin/sh
if [ $# -ne 1 ]
then echo "Usage: cleanvcf FILENAME"
return
fi
F_INPUT=$1
C_LINE=""
cat "$F_INPUT" | while IFS="\n" read line
do
C_LINE=$(echo "$line" | grep TEL)
if [ -z $C_LINE ]
then echo "$line">> Cleaned_$F_INPUT
else
echo "$line" | sed -e s/-/""/g>> Cleaned_$F_INPUT
fi
done
return
Click to expand...
Click to collapse
how do you implement that? is that a linux script?

to OP: export outlook contacts (not google)in excel> high light column with numbers in with hypens edit>replace what = "-" with = " "
ot but usually needed
found this solution for editing in excel
it removes any 44 and replaces with a zero
for all numbers greater than 6 digits
before pasting this into the adjacent column of your data, change the format of the cells
in the column with your existing incorrectly displayed numbers to TEXT. ignore if it looks wrong.
now edit this formula where M1 is your start of data. for google contacts more than likely U2.
copy down to end of data, now copy the correctly displayed numbers and paste special "values" to the column the numbers should be in.
=IF(LEN(M1)>6,IF(AND(LEN(M1)>6,LEFT(M1,2)="44"),"0"&RIGHT(M1,LEN(M1)-2),IF(NOT(LEFT(M1)="0"),"0"&M1,M1)),M1)
Returns the original number if it is <=6 digits
when you close the csv file if you reopen it the numbers will look all weird again. 7.87E.+09 etc. ignore it. when you import back into gmail it will all be correct

The application in the market called Unhyphenizer solves the issue now.

Change the Local Language
Change your Local Language from English(United States) to English(United Kingdom) in Settings > Language and Keyboard. That would solve the problem.

ilyaskk said:
Change your Local Language from English(United States) to English(United Kingdom) in Settings > Language and Keyboard. That would solve the problem.
Click to expand...
Click to collapse
It does not help...

Related

Mail icon launches SMS/MMS?

For some reason my mail icon on the HTC home screen occasionally launches SMS/MMS. It seems to happen only after I launch SMS using the text message button. Is there a way to make the mail icon permanently launch Outlook, and the text message icon permanently launch SMS, like it should work? Thanks in advance.
EDIT: I have found a solution!!!
1 - Make sure the "E-Mail Sample" account is deleted out of your accounts.
*** NOTE: If you don't delete this account first, this fix won't work! Changing the registry key below won't work. The only thing you can do is hard reset. I found that out the hard way. At least that's how it worked for me.
2 - Make sure Outlook is set up to check your mail
3 - Using a registry editor, go to HKLM\Software\HTC\HTCHome\Home, and change "AlwaysOpenMailFolder" from 1 to 0.
Using the above solution, the Outlook icon should ALWAYS open Outlook, and the SMS icon should ALWAYS open SMS.
I had this issue when I disabled "Display account picker when opening Messaging".
If this is disabled I would suggest enabling it and seeing if you still have this problem, although I didn't suffer from this randomly occuring, mine always went through to SMS after disabling this.
The option is available in messaging under
Menu -> Tools -> Options
I had this issue when I disabled "Display account picker when opening Messaging". If this is disabled I would suggest enabling it and seeing if you still have this problem, although I didn't suffer from this randomly occuring, mine always went through to SMS after disabling this.
The option is available in messaging under Menu -> Tools -> Options
Click to expand...
Click to collapse
Yea, Ive tried that. The only problem is that if I re-enable that option, then I have to choose Outlook from the list. I just want to click the icon and go straight to Outlook e-mail.
Sorry Mike - I didn't mean to post in Kaiser Upgrading.
Anyone else have this same problem with the Outlook icon?
Same thing here
Running the HTC Rom. Does this work correctly for anyone, where you hit the Outlook button and it opens Outlook, and SMS/MMS opens the correct folder?
Joe
quattro_joe said:
Running the HTC Rom. Does this work correctly for anyone, where you hit the Outlook button and it opens Outlook, and SMS/MMS opens the correct folder?
Joe
Click to expand...
Click to collapse
No, I seem to have the same issue.
I have seen this on all WM6 roms I have used on Hermes and Kaisers
So there's no way to force it to always open Outlook? There has to be a reg tweak or something. Maybe there is a way to change that icon's path so that it points to Outlook. If someone knew where that icon's path was stored, maybe we could look at it in Resco and see what it points to.
Anyone else have ideas?
I don't know how to fix it, but I can add this - it takes me to the account I last had open when I go to Messaging. So if I was last in the GMail account, that's where I land.
Yea that's true. But the design is just akward. I mean, the SMS icon ALWAYS takes you to SMS, without exception. But the Outlook icon just opens up the last messaging app you used? Weird. I need quick access to Outlook every time HTC!
Here, copy and paste this in notepad and make a new link the way you did the SMS one and it should take you to the outlook inbox. -
99#\Windows\tmail.exe -service "ActiveSync" -to "" -body ""
xeno1 said:
Here, copy and paste this in notepad and make a new link the way you did the SMS one and it should take you to the outlook inbox. -
99#\Windows\tmail.exe -service "ActiveSync" -to "" -body ""
Click to expand...
Click to collapse
Great! I actually used:
99#\Windows\tmail.exe -service "ActiveSync"
because the whole thing was taking me to a new outlook message. By only using the above it takes me to the Outlook Inbox directly every time even if I had previously chosen SMS/MMS.
So, now the question is, how do I remap the Outlook icon on the home screen so that it uses this new path? Any ideas?
jackjohnson said:
Great! I actually used:
99#\Windows\tmail.exe -service "ActiveSync"
because the whole thing was taking me to a new outlook message. By only using the above it takes me to the Outlook Inbox directly every time even if I had previously chosen SMS/MMS.
Click to expand...
Click to collapse
It's actually supposed to open a new email message, but so is the SMS one and it still only takes you to the inbox so I didn't figure it needed to be edited. Glad you figured out how to edit it though.
jackjohnson said:
So, now the question is, how do I remap the Outlook icon on the home screen so that it uses this new path? Any ideas?
Click to expand...
Click to collapse
That I don't know, I don't even like the HTC home app so I never use it. I'm guessing it has an xml file somewhere that if you find it you'll be able to edit the icon to point to that link, but I could be wrong. Somewhere on here theres an app that will allow you to edit the look of HTC home, I think it's in the development and hacking forum in the top area of xda-devs (hopefully you understand where I mean) and you might try asking the developer of that app if he could help you change that, or at least tell you where you can change it and how to do it.
Yea, I messaged the developer and haven't heard back. Anyone have any other ideas on this?
Question
jackjohnson said:
Great! I actually used:
99#\Windows\tmail.exe -service "ActiveSync"
...
Click to expand...
Click to collapse
jackjohnson or xeno1: Can a similar approach be used to get a "single click" shortcut on the today screen that opens a new, blank SMS? If so please provide just a bit more detail. I tried the procedure above just to see if I could get it to work and nothing I tried did anything. Thanks in advance.
swamp2 said:
jackjohnson or xeno1: Can a similar approach be used to get a "single click" shortcut on the today screen that opens a new, blank SMS? If so please provide just a bit more detail. I tried the procedure above just to see if I could get it to work and nothing I tried did anything. Thanks in advance.
Click to expand...
Click to collapse
I'm honestly not sure, but have you tried something like this?:
99#\Windows\tmail.exe -service "SMS" -to "" -body ""
or
99#\Windows\tmail.exe -service "MMS" -to "" -body ""
or some variation thereof?
No
jackjohnson said:
I'm honestly not sure, but have you tried something like this?:
99#\Windows\tmail.exe -service "SMS" -to "" -body ""
or
99#\Windows\tmail.exe -service "MMS" -to "" -body ""
or some variation thereof?
Click to expand...
Click to collapse
Thanks for the tip. I have not tried it as I am unsure of the basic method. Do I copy an existing shortcut .lnk file and edit the location it goes to or do I make a text file with this content and then rename the file and extension.
swamp2 said:
Thanks for the tip. I have not tried it as I am unsure of the basic method. Do I copy an existing shortcut .lnk file and edit the location it goes to or do I make a text file with this content and then rename the file and extension.
Click to expand...
Click to collapse
You could do that. I personally just make a text file with this information in Notepad. Make sure to choose "Save As Type: All Files", and for the filename, make sure you end it with ".lnk". Then copy that file to your PPC (usually to "\Windows\Start Menu\Programs\" - which will show up in the programs list). From there, just tap it once and it should run.
Since you're a noob at shortcuts (as I am too), you may want to create a test shortcut that you KNOW works, like the one I made:
99#\Windows\tmail.exe -service "ActiveSync"
That should launch Outlook. This will just give you a feel for whether or not you've got the shortcut thing down. Once that works, you know you're doing it right. I only say to do this because if your shortcut is invalid, it usually won't do anything when you click it (no errors, nothing), so it's hard to tell if you got it wrong.
Also, I just did a search. I haven't looked at all these threads, but have you guys seen them? They are all related to SMS shortcuts. They may be able to help you all:
http://forum.xda-developers.com/showthread.php?t=312700&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=320758&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=320448&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=311345&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=300325&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=290648&highlight=shortcut
http://forum.xda-developers.com/showthread.php?t=246319&highlight=shortcut
Hope that helps.
Ok, for you SMS shortcut guys, I tested this shortcut and it works. Turns out it was:
99#\Windows\tmail.exe -service "SMS" -to ""
You can create your own shortcut, or use the one I uploaded. You can rename the file to whatever you want (the shortcut filename is how it actually appears in the menu). If you stick it in "\Windows\Start Menu\Programs", then you can add it to Start Menu using the "Menus" control panel app, and it will always be right there when you want to do a new SMS.

icontact 0.75 settings problem

Can anyone help?
I am trying to change the setting within the icontacts app so when i want to send an e-mail it auto opens when i have selected a contact. I have moved the settings file and changed them and copied them back into the icontacts folder within my Kaiser. but it still wont work. Am i missing something really simple, or should i give up and go down the pub???
The file is found within the icontacts app
[main]
; case sensitive name of the email account from which you
; want to send email. Default, blank, is auto-detect
EmailAccount[email protected]?????????????????????????
; This is how favorites are stored. A "Favorite" will use
; this category in the built-in contact field "Category"
FavoriteCategory=Favorites
; The default minimize action is to hide. If you want to
; exit instead, change to 1
ExitOnMinimize=1
; The default action to take after performing an action
; (such as make a call, send email, send SMS, etc) is to hide.
; To exit instead, change to 1
ExitOnAction=1
; Set this to 1 to speed up the keyboard animation, with only
; a slight decrease in coolness factor.
FastGraphics=1
; The name of the skin to use. Will look for a file named
; ???.skn. i.e. default.skn
Skin=default
; The name of the language to use. Will look for a file named
; ???.lng. i.e. english.lng
Language=english
Anyones help will greatly appeciated.
Kind regards
Rich
main]
; case sensitive name of the email account from which you
; want to send email. Default, blank, is auto-detect
[email protected]?????????????????????????
It only needs to be the account name that you have set up in Messaging, (ie Outlook or in my case Bellsouth). If your trying to set it up using your email address it's not going to work. Just use the account name for that email address and it should work.
Many thanks, i couldn't see the wood for the tree's.
My acccount name was one character different from my e-mail address.
Thanks
rwertz14
is there an x button to close version of icontact yet...i think im using 0.73 and its good but still doesnt have x button..is there a version that does out yet?
Yes sort of. In the settings.ini file put a 1 for this option
; The default minimize action is to hide. If you want to
; exit instead, change to 1
ExitOnMinimize 1
After you change this, just tap on the VERY TOP CENTER of your screen (where it says the time) and it will close it. And it will actually be closed, its not running in the background anymore.

[Q] Dumb question - but I can't find the answer in the manual. How to cut and paste?

Sorry for this basis request - but how do I cut and paste text from a website/doco/email etc etc and paste them between SMS and emails etc?
Have read the manual and tried touch and hold, drag to highlight etc and nothing seems to work
Thanks
Google search found this:
http://webcache.googleusercontent.c...+copy+paste+Galaxy+S&cd=1&hl=en&ct=clnk&gl=au
But it only applies to copying text from a webpage - nothing about copying from one email/SMS to another??
Surely it must be possible - iPhones can do it dammit
I don't see any select text feature on the built in email & gmail app.. but for SMS, there is a "Copy Text" feature and if you want to select a text, forward the message first then "Select Text".
cut /paste from other sources, for example a browser , is being added in android 2.2 . thts so far what i know
I got Froyo on the SGS, so I've no idea what here is new and what was already there on 2.1.
1) Browser - long touch anywhere on the page opens a small box that you can drag to surround what you need, and then you got copy/share/search.
2) SMS - inside a message - menu > 'copy message text'.
3) GMAIL app - inside a mail - Menu > more > select text. You drag to select and it's copied to the clipboard (no share/search/etc, only directly copying to clipboard).
4) A long touch on any input box brings up a select/copy/paste/cut/etc context menu.
I'm still trying to find a way to copy/paste from a gmail chat...

[Q] [ASK] Remove separator

hi, i want to ask
is it possible to remove separator (minus '-' sign) in the z1's phonebook ?
i use to copy-paste numbers from phonebook to text message, but i need that numbers without separator. Of course i can edit it in text message, but if i copy paste a lot of contacts i will need alot of time to delete those separator sign.
maybe you suggest to sent the vcl files, but all i need is sent it via text message. since i need to add some text to it.
Thanks
by the way are there application that add the menu 'insert number' just like old nokia phone, because i think copy paste from phonebook is so unefficient
djnorich said:
hi, i want to ask
is it possible to remove separator (minus '-' sign) in the z1's phonebook ?
i use to copy-paste numbers from phonebook to text message, but i need that numbers without separator. Of course i can edit it in text message, but if i copy paste a lot of contacts i will need alot of time to delete those separator sign.
maybe you suggest to sent the vcl files, but all i need is sent it via text message. since i need to add some text to it.
Thanks
by the way are there application that add the menu 'insert number' just like old nokia phone, because i think copy paste from phonebook is so unefficient
Click to expand...
Click to collapse
Hmm... Not really the easy solution you're looking for, but you could try to reformat all your contacts to remove the -'s. I've done this before by using contacts.Google.com to export my contacts to a csv, open in excel, make mass edits excel, delete the contacts from Google then upload the new csv to Google contacts to repopulate them. Isn't the most elegant solution though...
Sent from my Xperia Z1 using Tapatalk
..btw ..even if there is a - between numbers the phone will dial them correctly and you will not have any problems. I think it just a matter of how they look.
@eclyptos : its not for dial, consider i sent text to kind of bot/machine. So i need specific format which is no separator
Sent from my C6903 using Tapatalk

[TUTORIAL] Email yourself through tasker!

Hi all. There's this one tasker tutorial on how to send yourself emails, but it doesn't work. At least for me. You have to install SL4A and PY4A and all these kinds of stuff from random github links, both apps being old and not providing errors on failure of python scripts.
So I wrote a fresher, shorter python script to mail yourself, and using the tasker plugin QPyPlugin I managed to send myself an email.
REQUIREMENTS
NOTE: QPyPlugin is a paid app, and it's really limited, but it does the job for this case.
Tasker (duh)
QPython3 (or QPython)
QPyPlugin (Paid: 3$)
This python script
Steps
First of all you'll have to edit the script and enter your data instead of the data written. Enter your email, your password, and if you'd like to use another smtp server other than gmail enter it's data.
Make sure the script is located at "qpython/scripts3/" (or "qpython/scripts", depending if you're using QPython3 or QPython). It will stay there.
Let's create the simplest task we can: A greeting email.
1. Create a new task named whatever you'd like
2. Now lets write what we're going to send into a file. The default location is "temp/mailout.conf" and it's changeable inside the script. If you are going to change it make sure you'll be writing to the file you specified in the script instead of "temp/mailout.conf".
Add a "Write File" action. In the File field, enter "temp/mailout.conf". In the text, enter the following:
Code:
To: [email protected]
From: Tasker Greeting Task
Subject: Hello from tasker!
Hello there!
I can use multiple lines, and even tasker variables.
It is now %TIME.
Crazy, right?
That's the syntax for the config file. The first lines can be an field you'd like, but the first line must be To: <address>. After the fields, enter a blank line and after that, type the body.
Make sure "Append" is not selected, so it'd create a new file each time you run it.
3. Now let's run the script. Add a "QPyPlugin" action. Press the configuration button and select which QPython app you have (QPython or QPython3) and the script.
That's it! Try to run the task and check your email.
Ideas / actual usage
Send yourself the weather & the news every morning
E-Mail participants in a calendar event reminding them about it
Email yourself the phone's location when your battery is low (Which is what I use it for)
When someone fails entering the phone twice email yourself the phone's current location
The possibilities are endless!
FAQ
Q: I'm getting a ValueError with something about the first line of the file and I don't know what to do!
A: Really? It says so right there. The first line of the mail file must be "To: <address>".
Q: I'm getting another error!
A:
Make sure you inputted the correct username & password in the script.
If you changed the SMTP server make sure you entered it properly and it's working.
Make sure that the mail file you create matches with the path & name in the python script (defaults to "/temp/mailout.conf").
Q: How do I know you're not going to steal my precious data?!
A: Because you can see so for yourself in the script

Categories

Resources