[Q] Keypad entry for numeric field. - Android Software Development

Hy,
As for my first app, I am trying to make a simple converter like app. The app isn't sophisticated, just need to enter a quantity in mass, a density and compute the resulting quantity in volume.
The main issue is to get a confortable UI, for touchscreen and soft keyboard devices.
As the entry only require numeric, I'd rather have a numeric keypad poping up rather than the complete alaphnumerical keyboard.
As for an example, I use 'currency converter' witch pop up exactly the good keypad for it's amount to convert.
So far I haven't found any documentation how to manage this behaviour.
I'd really appreciate any advise, link to a doc page or solution.

One thing to look at is:
http://developer.android.com/reference/android/text/InputType.html
In Eclipse:
-Open your layout xml file.
-Click on your EditText field and then go to properties.
-In the properties there is an 'Inputtype' field. If you click on the '...' button it will show you many options. This is where you define the field as 'number' or 'phone' and it will show the number keypad by default when you click on your field when using the app.
Let me know how it goes and if you have any other questions.

corruptor64 said:
One thing to look at is:
http://developer.android.com/reference/android/text/InputType.html
Click to expand...
Click to collapse
Thanks a lot.

Related

Link to Menu Items within Programs

Is there any way to create shortcut that would point to a menu item inside a program? For example, if I created a link to Messaging/Send and Receive, I could then create a voice command that would cause that to happen. Similarly, I would like to link to Messaging/Tools/Empty Deleted Items so that I can clear items off the server with a voice command or two. I am hoping this functionality exists in WM5, but haven't encountered it.
Sorry if this has been covered; I searched and I've been reading the postings daily for a couple of weeks.
This board has dramatically helped me configure my MDA.
There is no direct way to do this. What you'd have to look for is a program that can 'record' screen taps and 'play' them back to the system. MortScript is a free utility that does this, and more, and seems quite popular:
http://www.pocketpcfreewares.com/en/index.php?soft=1448
You can come a long way with this way of making shortcuts, the rest could then be done by Mortscript...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_tcuts2.asp
That seems promising
jpiek, that looks like just the thing, but the explanation is for settings. It looks to me that something like
23# "/Windows/tmail.exe,X"
where X is the number of the send/receive menu entry would work to automate the send/receive function. Similarly for the empty deleted items. So my questions are (i) is this right, and (ii) where I can find out the numbers of the menu items for Messaging?
prestonmcafee: that's not quite correct. The Microsoft link is specific to shortcuts to control panel settings.
For any other app you're looking for command line options, that may or may not be available for the apps you're interested in. Depends on the app...
V
Browse the File associations with a tool like "Pocket Tweak", it might help in looking up some commandline parameters...
Pocket Tweak's description doesn't sound promising.
There should be a way to do this. In Messaging, I just want Send/Receive, which is invoked by <menu>S, and Empty Deleted Items, which is reached by <Menu>T<Menu>E. I would also like to directly link to "Synchronize via Bluetooth."
which is exactly what things like mortscript allow you to do - send key presses / screen taps / etc. to the device as if you actually pressed them.
If you're looking for some magic command line switch that does it... e.g.
"poutlook.exe -sendandreceive"
then who knows - maybe it exists, but most likely it doesn't. For most applications, the menu items aren't something that have command line switches
What i meant was : With POcket Tewak you can have a LOOK at the file associations, and maybe get a hint of the parameter you have to use...
prestonmcafee said:
Is there any way to create shortcut that would point to a menu item inside a program? For example, if I created a link to Messaging/Send and Receive, I could then create a voice command that would cause that to happen.
Click to expand...
Click to collapse
Funny - looks like there's a thread that is on this very topic, and the latest post now details exactly what the shortcut for -that- should look like
http://forum.xda-developers.com/viewtopic.php?t=41505
Heimiko said:
\Windows\tmail.exe -Service "MailAccount" -Sync
Click to expand...
Click to collapse
Thanks!
I did search...

How to Change XT9/ABC default settings?

I have the 20 Key Touch Dual (nike) and XT9 works great, but depending on what program you are using some applications start in "abc" mode by default. This seems dependant on what feild you are in; Subject feilds like a new calendar item always starts in "abc" mode, where notes and message feilds start in XT9. If you change the settings it will default back next time you open that application. Is there a way to change the default keypress settings to always start in XT9 for all feilds or a way to remember your preference inside each feild.
Anyone have a suggestions/tweak/fix?
Thanks-
Jcostanza4
i also need to fix this it is really annoying
I think you are right and that it's determined by the field or the application. I've noticed that it defaults to "abc" in fields and applications where non-standard (unusual) language is often used; i.e. calendar entries, phone book, connections settings fields, etc.
There must be a workaround though...
Does anyone found a solution to this??
It's really annonying to have to change everytime for having the xt9 enable. I found a sort of shortcut: long press on the button "*/xt9" and then press "1" but you have to do it each time...
Don't we have a good programmer who knows how to make cab to get rid of this??
i tried this, you can change the keyboard to the normal one, non new htc, this it will be of.
Guys it's simple use file explorer and go to Window\xT9Settings and click to launch settings menu there you can check on/off the following:
-Spell Correction
-Next Word Prediction
-Auto Substitution
-Word Completion
-Multitap Word Completion
Don't know why HTC have hidden it in the windows directory!! it should have been placed in the systems menu in any case you can always create shortcut for it in the programs menu.
gfreek said:
Guys it's simple use file explorer and go to Window\xT9Settings and click to launch settings menu there you can check on/off the following:
-Spell Correction
-Next Word Prediction
-Auto Substitution
-Word Completion
-Multitap Word Completion
Don't know why HTC have hidden it in the windows directory!! it should have been placed in the systems menu in any case you can always create shortcut for it in the programs menu.
Click to expand...
Click to collapse
But the is no option there to disable or enable xT9 in all applications.
I think this is the same issue as being discussed in this thread - maybe they should be merged.
Even though this thread is the 20-key version the way it reads to me we are all looking for the reg key(s) that set the behavior of xT9...
dabs said:
But the is no option there to disable or enable xT9 in all applications.
I think this is the same issue as being discussed in this thread - maybe they should be merged.
Even though this thread is the 20-key version the way it reads to me we are all looking for the reg key(s) that set the behavior of xT9...
Click to expand...
Click to collapse
Im not looking to disable the XT9, but to enable it in every feild by default or ABC mode. Right now certain feilds default to ABC or XT9, so knowing which feild defaults to what is always a pain. If I get used to typing in one mode only everything would be smooth.
This is one of the biggest things that is bugging the hell out of me at the moment with this device. Everything else has been smooth, Really hope HTC fix this in the next version with either a user option to enable the mode you want to use. I am pretty sure that a registry edit could also do this.
gfreek said:
Guys it's simple use file explorer and go to Window\xT9Settings ...
Click to expand...
Click to collapse
no xt9settings program on my traditional chinese version.
Try the link below...^^
http://forum.xda-developers.com/showpost.php?p=2098945&postcount=4
Thanks for the link. It works properly.

auto recognising contacts when texting

av searched no luck i have a small issue am having and its like on my tytnii kaiser when i wanted to send a text;and began to type the letters of the contact i wanted to text for instance if i typed m it would automaticaly bring up the contacts which start with m for me to choose but my HD is not doing the same i have to search for the contact first any suggestions please thanks
When you at SMS typing screen, press option, click "Word Completion" tab. Make sure u tick every boxes.
vosszaa said:
When you at SMS typing screen, press option, click "Word Completion" tab. Make sure u tick every boxes.
Click to expand...
Click to collapse
thanks i guess whst you are tyring to say is settingd>messeging>sms\MMS then options but these no such option for word completion perhaps if you could elaborate more on how i can reach this option thanks
Ok.. Click Windows logo at top left corner
>> Click Setting at the bottom of the menu
>> In "Personal" tab u will see "Input" setting (The keyboard picture) Click it.
>> Change to "Word Completion" tab down the bottom.
>> Make sure u "TICK" every boxes u have in there.
DONE !!
vosszaa said:
Ok.. Click Windows logo at top left corner
>> Click Setting at the bottom of the menu
>> In "Personal" tab u will see "Input" setting (The keyboard picture) Click it.
>> Change to "Word Completion" tab down the bottom.
>> Make sure u "TICK" every boxes u have in there.
DONE !!
Click to expand...
Click to collapse
mate did what you said went into word completion and ticked the following
>suggest words when entering text
>add a space after word
>enable auto correct.
but still no luck am using the new spb keyboard and even tryd the default keyboard but still no luck any more suggestions cause if its a bug the phone will go back first class to orange tomorrow
If that doesnt help i dont know what else to do man.. im sorry. --____----"
thanks
vosszaa said:
If that doesnt help i dont know what else to do man.. im sorry. --____----"
Click to expand...
Click to collapse
thanks mate for your effort can anyone else help me please
Just replace
"HKLM\System\CurrentControlSet\Control\Layouts\e0010409\Ime File" value with "\Windows\compime.dll" instead of most owful ime implementation AKA eT9ime.dll by Tegic (not sure in they dll name spelling though)
P.S.: as usual, be warned about changing registry.
AE said:
Just replace
"HKLM\System\CurrentControlSet\Control\Layouts\e0010409\Ime File" value with "\Windows\compime.dll" instead of most owful ime implementation AKA eT9ime.dll by Tegic (not sure in they dll name spelling though)
P.S.: as usual, be warned about changing registry.
Click to expand...
Click to collapse
Just wanted to say thanks Fixed my problem...
AE said:
Just replace
"HKLM\System\CurrentControlSet\Control\Layouts\e0010409\Ime File" value with "\Windows\compime.dll" instead of most owful ime implementation AKA eT9ime.dll.
Click to expand...
Click to collapse
Thanks!! This works with Touchpal really well, don't forget to soft-reset after the registry change otherwise you've disabled your mail and messaging ;-)
i think i'm misunderstanding something here... when i put my cursor in the To: field, i start typing letters and names will automatically appear above the keyboard. i can continue to type until the correct recipient/name appears or i can scroll the "horizontal list" to find the name i'm looking for. does the registry tweak above present all possible selections in a "vertical list"? thanks for clarifying...
Yep. A white box pops up below the text field with possible matches, shows about 8 at a time.
mlalahoi said:
Yep. A white box pops up below the text field with possible matches, shows about 8 at a time.
Click to expand...
Click to collapse
does this happen when the cursor IS NOT placed in the "To:" field? thanks. i made the change and when i placed the cursor in the "To:" field, i did not have a list to choose from.
2cortez.i: the functionality you describe is built into default (but not standard!) keyboard you use. If you choose original windows keyboard or install any other third-party keyboard like Resco which have no similar functionality built in - then default system autocomplete contact list popup feature (supressed by tegic) is the only option. Specially if your contacts are not in English
And IMHO default contact list popup is much better than built into tegic keyboard because it let you to choose from list with one tap instead of reviewing them one-by-one...
2mlalahoi: yes, sure I'v just fogot to note that soft-reset is required
AE said:
2cortez.i: the functionality you describe is built into default (but not standard!) keyboard you use. If you choose original windows keyboard or install any other third-party keyboard like Resco which have no similar functionality built in - then default system autocomplete contact list popup feature (supressed by tegic) is the only option. Specially if your contacts are not in English
And IMHO default contact list popup is much better than built into tegic keyboard because it let you to choose from list with one tap instead of reviewing them one-by-one...
Click to expand...
Click to collapse
aahhhhhhhhhhhh... i understand now. i tried the registry tweak again with the standard keyboard and it works as you described. but, if i use the HTC Full QWERTY keyboard, the vertical list will ONLY appear AFTER i type 2 letters AND THEN hit the backspace key. i prefer the vertical list for sure! however, i prefer the "To:" field to be automatically populated as is done with tegic dll. too bad the registry tweak above requires an extra "backspace" keystroke. thanks for explaining the difference.
thankssss
AE said:
Just replace
"HKLM\System\CurrentControlSet\Control\Layouts\e0010409\Ime File" value with "\Windows\compime.dll" instead of most owful ime implementation AKA eT9ime.dll by Tegic (not sure in they dll name spelling though)
P.S.: as usual, be warned about changing registry.
Click to expand...
Click to collapse
tried it and it worked you are a star mate just wonder how these guys manage to pick up staff like that thanks mate
For me, this only half works now. I start entering a name and it's not until I delete a letter that it looks the name up? Any fix for this?
AndyCr15 said:
Just wanted to say thanks Fixed my problem...
Click to expand...
Click to collapse
hi it worked for me, if i use the standard keyboard or full qwerty, bu if i use the phone pad keypad, it doesnt work. infact it doesnt type anything.
i tried typing it in the text area of email / sms but no success.
so i have to change it back to et9ime.dll , but if you can provide me the solution so that it works with phone keypad along with the qwerty, than its really cool tweak.
please help.
AE said:
Just replace
"HKLM\System\CurrentControlSet\Control\Layouts\e0010409\Ime File" value with "\Windows\compime.dll" instead of most owful ime implementation AKA eT9ime.dll by Tegic (not sure in they dll name spelling though)
P.S.: as usual, be warned about changing registry.
Click to expand...
Click to collapse
Hello there,
I have tried your changes , it works!! but only on one keyboard, i cannot use the others because it types figures instead of words...
Can you tell me how i apply it on the other keyboards?
Thank you in advance

Remap Softkeys

I´m using pocket informant for PIM management and HD Tweaks to remap the softkeys, however, I can´t assign to any of the softkey the pocket informant contacts or calendar, only the WM.
Any ideas on how to solve this?
You need to modifye keys in the registry. Here is how I've done it on my HD (it's in french, so you may have to translate the path for your version)
Using a registry editor,
- I have assigned the label "Agenda" to the left soft key :
HKLM\Software\HTC\Manila\HomeLSKText="Agenda"
- I've assigned the week view to the key :
HKLM\Software\HTC\Manila\HomeLSKPath="Windows\menu démarrer\programmes\informant utils\piweek.lnk"
Note that the "Informant Utils" folder contains a shortcut for each view, you can choose whichever you want, their name are self explanatory.
I've configured the x button to close all applications but PI (to have it always active and then have a faster access) :
- start PI
- go to settings>Task manager> tab "current" (or whatever the first tab name is in your language)
- tap and hold on the PI task, then select "add to exclusive"
That way, when I click on the left soft key (now labeled "Agenda") I switch to PI in week view. I can then switch from PI by using the Home button or the x button, PI will stay active and the next switch will be very fast.
Nor working for me...
I should work. You must have made a mistake somwhere. Did you do a soft reset? Did you doublecheck the path to be sure you wrote it correctly?
You can also try the program HD Tweak wich allow you to set that in section 14.4 & 14.5.
My answer to HTCZar was irrelevant, because Claude already anwered.
As I said in the first post, I tried to use HD Tweaks, however the optios presented don´t include the PI calendar\agenda, how do I put them there?
Coude said:
- I've assigned the week view to the key :
HKLM\Software\HTC\Manila\HomeLSKPath="Windows\menu démarrer\programmes\informant utils\piweek.lnk"
Click to expand...
Click to collapse
Could you possibly check the link properties for this and month view? Just for anyone that might have got rid of all those extra links cluttering up his 'All programs list'...
What I'd like to have set up, the left soft key goes to Pocket Informant (maybe the screen where you choose what view you want) and when I tap an appointment in TF3D it loads the agenda view, using SSMaPa. (Can you get me a link for this?)
Here is the link as read in the properties of the shortcut :
For PIWeek.lnk :
"\Program Files\WebIS\PocketInformant\PITab.exe" 4?\Program Files\WebIS\PocketInformant\PITab.exe,-113
For PIMonth :
"\Program Files\WebIS\PocketInformant\PITab.exe" 4?\Program Files\WebIS\PocketInformant\PITab.exe,-114
To get rid af tho extras link in 'All program list', it would have been better to move the shortcut in another folder, so you could still use them if needed...
I haven't used SSMaPa yet (but I planned to) therefore I can't help you on this matter. Sorry.
Yeah, I should have just moved them... silly me. Thanks for your help. Could you possibly give the link to the agenda view too? Thanks.
Is there a link to 'view' view?
I´ll Try that Again then.
Is it possoble to change the hardware keys function?
Works fine! Thank you very much! @claude
Where do you put the path and exactly how are you writing it ?
@AndyCr15
Could you possibly give the link to the agenda view too?
Click to expand...
Click to collapse
"\Program Files\WebIS\PocketInformant\PITab.exe" 2?\Program Files\WebIS\PocketInformant\PITab.exe,-111
Is there a link to 'view' view?
Click to expand...
Click to collapse
Sorry, I couldnt find one.
@HTCzar
Where do you put the path and exactly how are you writing it ?
Click to expand...
Click to collapse
1. You need to install registry editor. I use Resco Registry Editor, but there are some other.
2. Open the registry and follow the tree up to the parameter HomeLSKPath. Taping on the parameter should provide a field where to keyin the path string.
3. Quit the registry editor
4. Restart TF3D or do a Soft Reset.
I´ve done that, and i´m also using Resco editor.
The path strings begins with Windows\....PIWeek.lnk right? it takes no " "?

Try this! (more stuff added)

Ok, by now you probably know HTC's nice text selection tool. To use it, write some words in a HTC application (like the text message composer), then tap-and-hold somewhere in the text. You get one handle to move around, or two if you want to select a precise part.
But there's more. Change "HKLM/Software/HTC/TextSelection/EnableMagnifier" from 0 to 1. Now activate the text selection tool again as described above and try moving the single handle around...
Nice catch. Can be helpful in tight selections. I've been looking through the reg. So much stuff disabled... Why does HTC do this? They could've placed it as an option on SMS menu...
Thanks. Added to tips thread.
Maybe they disable it so we at XDA have something to do until HSPL is released
Some other simple but cool things I discovered:
* You can use the album app to crop pictures. Just pinch-to-zoom until the part you want fills the screen, then tap the screen, tap the icon on the bottom right and choose the second option from the menu. In Dutch it's called 'Schermafbeelding opslaan'. It will save a cropped copy of your pic.
* Here's a registry entry I found: "HKLM/Software/HTC/Manila/InternetPush/EnablePushInternet". It's set to 0 by default. I'm not really interested in push internet, so I haven't experimented with this, but it seems you can enable it if you want.
* Sometimes touch scrolling gets in the way of selecting text. If you want to select text, the solution depends on the context, but to start you just tap-and-hold anywhere:
-- In Opera, you can switch text selection on/off in the context menu;
-- In some apps (like while reading an e-mail message) you get a pop-up menu where the first option is 'make selection' ('selectie maken' on my Dutch device);
-- In Word, just before the pop-up menu appears, you see this: '[T]'. As soon as it appears, move your finger and you'll be able to select text!
* If you like the Footprints app but prefer full size pictures to those square 'polaroids', there's an option to save a full sized copy whenever you create a 'Footprint' (Footprints tab -> Menu -> Settings).
* The 'me' entry in the People app stores your 'owner' info. I know this is widely known by now, partly because I've been posting it everywhere, but I still see so many people complaining they can't register their applications (Resco stuff, SKtools)... because the can't find the old owner info icon. I have registered both Resco Explorer and SKtools perfectly fine without ever bringing the owner info icon back.
I haven't ever been able to get the Text Selection sliders to work on a custom rom even after setting the registry value to 1.
This is an awesome feature and I can't understand why it doesn't work.
leepriestenator said:
I haven't ever been able to get the Text Selection sliders to work on a custom rom even after setting the registry value to 1.
This is an awesome feature and I can't understand why it doesn't work.
Click to expand...
Click to collapse
you know it only works in text messaging, right? (well, some other htc apps too, apparently, but i couldn't name another one i've seen it in)
Yes of course... I'm aware that it only works in the realm of Sense specifically mail and text. I can do the standard selection thing but I just can't seem to get the sliders.
Any ideas?
hmm, well a common mistake I've come across a few times is people not pressing select the first time.
firstly go type some text into a new text message. (not sure where the idea it works in email came from, certainly doesn't on mine.)
ok, press and hold should bring up a cursor and the words "select|select all.
use the single sljder to set the start(or end, whichever) press 'select' nd now a second slider should join the first, enabling you to select.
Thanks for the responses guys, but as it turned out, I didn't realise that Energy ROMs are stripped of the HTC Messaging Module and that seems to be the only place where this 'feature' works.
It's a shame that's it's not available system-wide considering how easy it makes life.
I installed the HTC Messaging Client and voila, it was it there! but that excitement was short lived considering how bad HTC's messaging client is.
hah couldn't agree more. with the magnifier too its great ,, just never gets used.

Categories

Resources