PDA

View Full Version : my first winmobile app - number formatter


jdgordon
2nd December 2008, 02:43 PM
Dunno if this should go here or not... anywho...

I was bored today and been wanting to learn C# and .NET CF for a while, so here the first version of my first app....

I got sick of how it stores new numbers by default (i guess depending on the rom you'll get +61.... or just 0433......) and I have some international numbers and the whole thing is a mess, so what this does is it tries to match.

its all based off a rules file which you will find in the .cab
.. so how it works is like this... there is a rule "+614xxxxxxxx:04xx xxx xxx"
so that will take any number that starts with +614 and is followed by 8 numbers an change it to store as 04 with the numbers spaced like they normally are.
The rules are tried in order, lines starting with a # are comments (I've included 7 rules which converts all aussie numbers to how they are normally represented)

So, when the program is started it will run through your contacts and try out every number (which might take a few seconds). Any that it finds will get shown in a nice tree where you can check the numbers you want stored permanently.

you can get the .cab here (http://bjorn.haxx.se/jdgordon/NumberFormatter.CAB) and it needs CF.NET 3.5


I seriously hope there wasn't a inbuilt way to do this....
I'm probably going to release the source once its cleaned up a bit, but untill then, leave a reply if you want it.
Also, is there a nice regex which can do this?

Oh, the rules are mostly for Australian "standards" so you will probably need to fiddle to get them working well for you... paste your local rules and I'll add them

Let me know what you think.

Kojote1980
3rd December 2008, 12:19 AM
your announcement would do much better in the devers part located here: http://forum.xda-developers.com/forumdisplay.php?f=260

maybe one of the mods want to move this topic, so the author gets more feedback? :)

oldsap
3rd December 2008, 12:39 AM
the cab file won't install on my Elfin

jdgordon
3rd December 2008, 01:20 AM
more info? have you got CF.NET 3.5 installed?
I may have stuffed up the cab (although it works fine on my kaiser...) http://jdgordon.info:8080/~jonno/numberformatter.zip is the exe and the needed rules.txt file, just make sure they are both in the same folder and it should work

jdgordon
3rd December 2008, 12:33 PM
bump to get some feedback (threads move too quickly here :p )

oldsap
4th December 2008, 01:10 AM
more info? have you got CF.NET 3.5 installed?
I may have stuffed up the cab (although it works fine on my kaiser...) http://jdgordon.info:8080/~jonno/numberformatter.zip is the exe and the needed rules.txt file, just make sure they are both in the same folder and it should work

the cab installation is unsuccessful. so i cannot try it out. i do have netcf3.5 installed


BTW i also wrote an application similar to this but is specifically for Philippine users.
http://oldsap.blogspot.com/2008/05/contact-number-fix.html

jdgordon
4th December 2008, 02:06 AM
I guess I stuffed up the cab setup bit in VS... does the exe in the zip I linked work? the cab does nothgin except put the exe and rules.txt into the programs folder