Valid characters in phone numbers? - HD2 Windows Mobile 6.5 Themes and Apps

Hi all,
today I came across a problem which I don't know how to resolve. It happened when using the search function in Google Maps, which is very sleek by the way. I found a place and wanted to dial the respective phone number. Which failed due to a '/' character in it.
Now the question, what are valid characters in phone numbers? I use to store my contacts as:
Code:
+<country code> (<pefix>) <number>
e.g.
Code:
+49 (1234) 567890
... which never made a problem in dialing or sending SMS (really, no problem?). What if I wrote them like this:
Code:
+<country code><pefix>/<number>
e.g.
Code:
+491234/567890
The case mentioned above was given without the country code:
Code:
<pefix>/<number>
e.g.
Code:
01234/567890
The dialing failed and complained about "incomplete number", stopped dialing with the '/' character.
Is there any recommended form of storing numbers?
Any hint is appreciated! Thanks.

Related

Default area code when adding new contact ?

When I want to add new contact, I hit "Contacts->New" and start filling fields (Name, Company, Department, etc).
When in comes to any PHONE related field (like "Work Tel", "Mobile Tel", etc) it shows me "(425)" by default. Although I like this idea (less typing), but since my area code is different ... is there any way to change it ?
Even more ... I would like to set default to "+1 (813)", not just "(813)".
I believe, this "(425)" thing is somewhere in registry. Any ideas where it can be ?
Area code
you dont need any reg. change
go to Contacts--->Menu--->Options--->Area code
Thanks .... never even looked into "Contacts--->Menu--->Options--->Area code"
BTW you can set it not just to area code like "813", but to random prefix ... I set it to "+1 (813) "
bogdatov said:
Thanks .... never even looked into "Contacts--->Menu--->Options--->Area code"
BTW you can set it not just to area code like "813", but to random prefix ... I set it to "+1 (813) "
Click to expand...
Click to collapse
I See You Live In Tampa LOL

Force numeric input on VB.net

i ported a small app that does some djing related calculations on smartphone and ppc using vb.net...
i ve seen some apps on my smartphone (strtrk) that force numeric input only for inputing serials etc, do you have any idea how to do this on vb.net?
im not a developer, i just want to port my app!
For Smartphone.
Just Use.
Code:
InputModeEditor.SetInputMode(<TextBoxName>,
InputMode.Numeric)
When The Form Loads.
Regards,
OllieD
OllieD said:
Just Use.
Code:
InputModeEditor.SetInputMode(<TextBoxName>,
InputMode.Numeric)
When The Form Loads.
Regards,
OllieD
Click to expand...
Click to collapse
Thanks for the reply, but i get 2 errors:
Code:
Error 1 Name 'InputModeEditor' is not declared. E:\pitchCalcSP\PitchCalcSP\mainFrm.vb 36 9 PitchCalcSP
Error 2 Name 'InputMode' is not declared. E:\pitchCalcSP\PitchCalcSP\mainFrm.vb 36 47 PitchCalcSP
Im not really into coding but ive inserted what you told me in this section: (current is the textbox name)
Code:
Private Sub mainFrm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
InputModeEditor.SetInputMode(current, InputMode.Numeric)
End Sub
Sorry I Was Rushing.
Add A Reference To "Microsoft.WindowsCE.Forms"
Then Add
Code:
Imports Microsoft.WindowsCE.Forms
To The Top Of The Forms Code In The Declarations Section.
Should Sort It Out.
this works perfectly. thanks a lot.
sorry for exploiting your knowledge, but i have noone else to ask
my textboxes are 3 digit numbers, what should i do if i want them to have 4 digits (1 decimal)? for example 100.5.
with the code u gave me i can only input numbers, * and #.
the only thing remaining is to use the * or # to input the decimal separator.
i ll sure mention u in the about box

Inventory Database With Pictures

Hello,
I've got an Inventory of 1,000 parts and I would like to have this list available online via a web page. I need to include Part Number, Manufacturer, Description, and Notes. I also plan to take up to 10 photos of each part to include with the description.
The idea is to make this available to the Technicians in the field so that they have a control part to reference while on site trying to assess damages.
Over course I can't make 1 long page of parts, so I'm going to have to build a database.
I'm open to suggestions and direction. I'm assuming either an SQL DB or something using ASP, but I'm drawing a blank as to where to begin.
Thanks for your help,
Mike
I'd say SQL, get something like mySQL (super easy) then setup the proper tables and fields. I'm not sure if you can include actual image data in the tables or not (I don't think you can) but you can include references to the images (the links to them) and parse those through whatever reader you're using. If you make a webpage that pulls the data it would be simple enough to include the images of the specific part.
Code:
SELECT * FROM parts WHERE partnumber = "insert number here"
That should get you all the info from the "parts" DB for the part with whatever number, just parse the data and display.
Yes I was hoping to use the DB to reference the stored images and display them as thumbnails or something like that.
Then that should be easy, just make sure the images are uploaded to the same site so you can use relative paths instead of absolute. I'm sure if you need some help the other members here would be more than happy and feel free to PM me about this for more detail if you want to.
Thanks dbzfanatic. You know I got Web Skillz, but this is over my head a tad. Actually I'm probably making it more complicated than it is.
I need a page that they can go to:
Part # _________
Manufacturer ________
Description _______
[Search]
Then I just need it to show all matchs and possibly links to the photos
-- OR --
List all matches and when they select a match it opens to a "Details" page with the full description and extra Notes. Pics would also be on this page.
I seriously feel like canibalizing a freebie E-Commerce tool
It really wouldn't be hard, you probably are making this harder than it needs to be . I've done that before too >.>
Will they already know the part number or will it be something they usually get from the info in the DB? That will play a role probably, or at least it would the way I'm thinking. I'd say make it so you have a dropdown menu of part numbers and the search button, then use that number in your SQL query, then pull up the "details" page which should show pictures. You could also do it so that you have a page with all the parts of a certain type displayed and have it setup like
[ ] [ ] [ ] [ ]
# # # #
[ ] being picture and # being (obviously) part number. Then have the picture be a link to the main "details" page. If you use that format i'd suggest only using the first picture in your list for each part, that way they get a good idea and you also save some room, plus if it isn't the part they wanted there's always the back button .
I'll give you more when I get home tonight,but under normal circumstances they would know either the part number or the manufacturer. The parts usually reside in a unit has the manufacturer on it somewhere. The part number is normally on the part if we installed it, but sometimes it comes off or is damaged. (Bar Coded sticky label)
Alright that makes things easier and gives you the option of using both methods. If they know the part number just search for it in the DB and if they only know the manufacturer have a list page by manufacturer. Easy enough right? The hardest part will be getting the DB populated (trust me it's cumbersome...doing some DB pop myself -_-)
dbzfanatic said:
You could also do it so that you have a page with all the parts of a certain type displayed and have it setup like
[ ] [ ] [ ] [ ]
# # # #
[ ] being picture and # being (obviously) part number. Then have the picture be a link to the main "details" page. If you use that format i'd suggest only using the first picture in your list for each part, that way they get a good idea and you also save some room, plus if it isn't the part they wanted there's always the back button .
Click to expand...
Click to collapse
I like this idea, but this is mostly for the techs and they will be accessing it from a smartphone. For now those are HTC Snaps and Samsung Intrepids running Windows Mobile 6.0 or 6.5. The screens are very small so left to right scrolling would probably be a bad idea.
I would either build it in a Column like:
[_]
#
[_]
#
[_]
#
[_]
#
Or
# [_]
# [_]
# [_]
# [_]
I think the 2nd option would take less vertical space. We have some vendors with 200 parts.
Building it in a vertical/column style would help them to be able to scroll through the photos faster.
I would only consider the Row style interface for office employees.
I have my inventory data, less the photos, already compiled in Excel. I was hoping to be able to cheat death & time buy importing the information.
I'm not sure how to import excel info into a DB but there's bound to be a way, if your employees have a decent touchscreen they should be able to scroll left/right as well but yes the vertical layout would be better. If you need help with fine details don't hesitate to ask and good luck with this ^_^.
dbzfanatic said:
I'm not sure how to import excel info into a DB but there's bound to be a way, if your employees have a decent touchscreen they should be able to scroll left/right as well but yes the vertical layout would be better. If you need help with fine details don't hesitate to ask and good luck with this ^_^.
Click to expand...
Click to collapse
I thought I was asking I guess I'm doing it wrong.
The trouble with the phones is they're not all touchscreens plus there's a number of techs that have their own Blackberries. I think it's best to build a simple page with no left and right.
So I was thinking about it today and I don't think I need to much to get this done.
1 database with 1 table (Parts)
1 index.php to use for seraching
1 results.php to show results (Might even be able to put the results in the index)
I'd eventually like to have 2 versions/views, one for the phones and one for the warehouse.
Yeah sorry I took some time and did a lil search for you which might help. I'm assuming you're using MySQL, if so go here http://blog.tjitjing.com/index.php/2008/02/import-excel-data-into-mysql-in-5-easy.html and read how to import your parts list. Then it's just a matter of doing some coding of the php pages. My suggestion would be to have the image references already as html in the DB to make things easier. That way when you call
Code:
SELECT * FROM Parts WHERE ID=*number*
you can just display the information directly. If you "echo" the result and it's like this:
Code:
<img src=/parts/images/56.jpg><br /><img src=/parts/images/58.jpg>
it will automatically display as if you'd type it into the html (if you didn't already know that ). It's also handy to do it this way since you don't need to know how many pictures you have of the part, it's just parsed and added automatically. I'd say your DB should look something like this:
Code:
ID Manufactuerer Description Images
56 HTC "Small" <img src=/parts/images/56.jpg><br /><img src=/parts/images/58.jpg><br /><img src=/parts/images/56.jpg><br /><img src=/parts/images/56-2.jpg>
and your php page look like
HTML:
<title>Parts</title>
<?php
$query = "SELECT * FROM Parts WHERE ID=" . $_POST['ID'];
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
?>Part Number: <?php echo $row["ID"];?>
Manufacturer: <?php echo $row["Manufacturer"];?>
Description: <?php echo $row["Description"[;?>
Images: <?php echo $row["Images"];
}?>
Something like that should work fine , at least for the "results" page.
dbzfanatic said:
I'd say your DB should look something like this:
ID
Click to expand...
Click to collapse
Nothing displayed?
Yeah sorry hit "post" instead of "go advanced" >.>;; post above edited
Ok I got the DB made and some test data imported from Excel. Not Photos yet, but hopefully tomorrow I'll have some test photos.
You should test pulling some data and gettint the setup right, once u got that working the rest is cake (no cake is not a lie)
Sent from my T-Mobile myTouch 3G Slide using XDA App
How do I tell the PHP what DB to look at?
My DB name is minfinge_cdcparts
I had to assign it a user and a password. Is that important to use in the php file?
Got an error in Line 11 at the moment.
http://www.mikeinfinger.com/demos/cdc/parts/
Yeah your error is because you're trying to connect to the DB without the password.
Code:
$dbuser="username";
$dbpass="password";
$dbname="minfinge_cdcparts"; //the name of the database
$chandle = mysql_connect("localhost", $dbuser, $dbpass)
or die("Connection Failure to Database");
mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);
$mainsection="Parts"; //The name of the table
is how you connect to a password protected DB (I pulled it off the net so I didn't have to type ), of course replacing appropriate info. So it'd look something like this
Code:
[COLOR=#000080]<title>[/COLOR]Parts[COLOR=#000080]</title>[/COLOR]
[COLOR=#000080]<?php
[/COLOR]$dbuser="username";
$dbpass="password";
$dbname="minfinge_cdcparts"; //the name of the database
$chandle = mysql_connect("localhost", $dbuser, $dbpass)
or die("Connection Failure to Database");
mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);
$mainsection="Parts";
[COLOR=#000080]$query = "SELECT * FROM " . $mainsection . " WHERE ID=" . $_POST['ID'];
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
?>[/COLOR]Part Number: [COLOR=#000080]<?php echo $row["ID"];?>[/COLOR]
Manufacturer: [COLOR=#000080]<?php echo $row["Manufacturer"];?>[/COLOR]
Description: [COLOR=#000080]<?php echo $row["Description"[;?>[/COLOR]
Images: [COLOR=#000080]<?php echo $row["Images"];
}?>
That should help/do the trick.
[/COLOR]
Failure Line 14
Code:
while($row = mysql_fetch_array($result)){
Here's the whole file
Code:
<title>Parts</title>
<?php
$dbuser="dbusert";
$dbpass="dbpass";
$dbname="minfinge_cdcparts"; //the name of the database
$chandle = mysql_connect("localhost", $dbuser, $dbpass)
or die("Connection Failure to Database");
mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);
$mainsection="parts"; //The name of the table
$query = "SELECT * FROM " . $mainsection . " WHERE ID=" . $_POST['ID'];
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
?>Part Number: <?php echo $row["ID"];?>
Vendor: <?php echo $row["Vendor"];?>
Vendor Number: <?php echo $row["Vendor_Number"];?>
Description: <?php echo $row["Description"];?>
Images: <?php echo $row["Images"];
}?>
You might wanna edit that file so people on the net can't use the usr/pass for your DB. Also try changing it to this.
Code:
<title>Parts</title>
<?php
$dbuser="*user*";
$dbpass="*pass*";
$dbname="minfinge_cdcparts"; //the name of the database
$chandle = mysql_connect("localhost", $dbuser, $dbpass)
or die("Connection Failure to Database");
mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);
$mainsection="parts"; //The name of the table
$query = "SELECT * FROM '" . $mainsection . "' WHERE 'ID'='" . $_POST['ID'] ."'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
?>Part Number: <?php echo $row["ID"];?>
Vendor: <?php echo $row["Vendor"];?>
Vendor Number: <?php echo $row["Vendor_Number"];?>
Description: <?php echo $row["Description"];?>
Images: <?php echo $row["Images"];
}?>

[Q] How to change the defaults emergency call codes (ECC)

Hi,
I'm proud owner of a Huawei Honor 2 U9208, on which I've installed MIUI in French. (but the problem is the same with the Huawei stock rom)
I've noticed that the only emergency codes allowed are 112 and 911.
112 is an acceptable emergencey code in France, eventhough it is not the most used. So I'd like to add some more common numbers, such as 15 (medical emergencies), 17 (police) and 18 (fire brigade).
I couldn't find answer elsewhere, so I call to your knwoledge.
I've looked into build.prop, where I found this line:
Code:
ro.ril.ecclist=112,911,#911,*911
I thought "great, that would be easy!". Well it's not. Whatever I change in this build.prop, emergency numbers are still 112 and 911. I've tried:
Code:
ro.ril.ecclist=15,17,18
Code:
ro.ril.oem.ecclist=15,17,18
Code:
ro.ril.oem.nosim.ecclist=15,17,18
There is also a section in build.prop:
Code:
# for custom-make emergency numbers, the format is ECC category + ECM number
ro.config.hw_ecclist_withcard=1+110,6+119,8+118
ro.config.hw_ecclist_nocard=1+110,6+119,8+118
which might be of interest, but I cannot understand how to modify it...
I forgot to mention that i'm using a French SIM card, in which emergency call codes *should* be integrated in the EF_ECC section. (I couldn't check with another phone to be sure)
So, here are my questions:
- what is the meaning of the 'custom-make emergency numbers' sections and how to modify it?
- where can I change the ecclist if not in this build.prop
- why modifications made in build.prop don't seem to be working?
Thanks for reading, and even more if you can help me.

Why would .DataApi.addListener(… , this) only get called by Mobile & not Wear?

.onConnected() never seems to be reached by my [Wear - MainActivity] regardless of how it gets called.
I can see the S.O.P. for the .onConnected() for the [Mobile - MainActivity] as well as the S.O.P. where:
Code:
DataMap map = putDataMapReq.getDataMap();
map.putStringArrayList(WEAR_MESSAGE_PATH, actsList);
System.out.println("[mobile] - StringArray /hopefully/ put");
map.putLong(TIME_MESSAGE_PATH, System.currentTimeMillis());
System.out.println("[mobile] - Timestamp /hopefully/ put")
gets called, but when I try running:
Code:
System.out.println(putDataReq);
I get a reply with:
Code:
PutDataRequest[dataSz=247, numAssets=0, uri=wear:/wristaroo, syncDeadline=1800000]
So am I not adding a listener to my mGoogleApiClient correctly --? I tried implementing a WearableListenerService [which is shown on my GitHub] but I don't know how to add it to mGoogleApiClient and then get the corresponding data form the Message....
Really I'm trying to figure out what the best way to send the ArrayList<> to the wear and then have the data persist would be...?
Any input would be greatly appreciated!

Categories

Resources