Key mapping question. (for mobile phones with PC-like keyboard)

For phones with mini keyboard (one button per one character, like a PC keyboard).
I'm trying to implement a form with few text boxes. The goal is to let user type the message like they're using a PC keyboard (unlike in traditional phones, where you need to press the 'numpad two' button three times in order to type the character 'C')
I've successfully implemented this functionality. But it's an ugly implementation because I use a switch-cases for each and EVERY keycodes.
Forexample:
char inputChar;
switch(keyCode)
case 97: input = 'A' break;
case 98: input = 'B' break;
// go on until every keys are covered, including the lower case letters. T_T
buffer.append(inputChar);
Yes I know that my programming skill is real crap >_<, so I try google for some good implementation method. But I always found only the detail about the traditional numpad implementations.
Ok, my real question is, can this keyboard implementation be done in a better way? The code should be able to look more beautiful than this, right?
Thank you. =)

I still don't get the problem here?
A textbox in a form will work just fine with those mini keyboards. You don't need to do anything for it..
Otherwise, this code can obviously be done better, a simple array where you just lookup your keycode will be much simpler and faster for instance.

Similar Messages

  • Basic phone with sliding QWERTY keyboard

    I am looking for Basic phone with sliding QWERTY keyboard, that will text and send pictures without a data plan.
    I am now on disability and can't continue with the high cost of data plans.
    I was using my Droid 4 but without Data turned on it will text but will not send pictures.
    My daughter is sending me an LG-505c so I am hoping that will work but I would still like to get my calender on the phone also.
    anyway I need ideas on what phones will work. 

    The LG ENV3 will work without a data plan, as will several of the older "multimedia" phones and basic phones.  My husband is still using an LG VX 5400; my mom uses an LG VX 5200 and both send and receive picture messages (though they are small).  Samsung Sway, Alias, LG Voyager, EnvTouch - all of these work without a data plan, and will send and receive texts.

  • HT5312 Hello I have purchased the account from the shop for mobile phones and when Dgt a balance of $ 75 U.S. dollars tried to go down some programs, but ask me to answer questions and there have even when the shop is not accepted to give me any data abou

    Hello I have purchased the account from the shop for mobile phones and when Dgt a balance of $ 75 U.S. dollars tried to go down some programs, but ask me to answer questions and there have even when the shop is not accepted to give me any data about amyl which bearing correctly and password also trueThe name is true, how can I re-answer these questions??? replace phones is that Ahab Please give me the quick fix and sent the answer to Emile is:[email protected]

    Well I can't understand your english at all. If you need to reset your security questions, then try this:
     Account Security Team (AST) 
    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE131
    Call them up, and let them know you would like to be transferred to the Account Security Team.
    Or… click on the blue "Start your support request online" links.

  • Office packet for mobile phone

    I have mistakenly deleted the "Word To Go" application that came with the device. However, every Word application that I tryto install asks for the existence for the "Word To Go" application that I have deleted. I was just trying to install application, but it asked me to first install "office packet for mobile phones" tbefore installing the application. Please help me.

    use a PC, install on it the "BlackBerry Desktop Software". Then plug the 9800 and ask it to update your OS.
    At some point you will be prompted for languages as well as applications. There, you'll see apps like BlackBerry Maps and datviz Docs To Go. Just check Docs To Go again and proceed.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Enterprise solution for Mobile phones using Wi-Fi

    Hi All,
    Not sure if this is the right forum.
    We are working in a building where we do not get mobile phone coverage ie cannot get signals at all from our telcos
    We recently bought a lot of APs ie AIR-CAP3502I-N-K9 + WLC and start deploys wireless around our building for data.
    Just wondering what alternative solutions or software we can use so we can somehow get our users' mobile to work.
    Thanks
    QL

    We are working in a building where we do not get mobile phone coverage ie cannot get signals at all from our telcos
    The Future of Hotspots: Making Wi-Fi as Secure and Easy to Use as Cellular
    Configuring Mobile Concierge
    If I read correctly, Cisco has started implementing 802.11u with the soon-to-be-release WLC firmware code 7.3.X called Mobile Concierge. 
    I am not sure about how to get this running but I hope this two links I've posted will get you to work. 
    Unfortunately, I am also not sure how mobile phone carriers will like this if mobile phones will go to an Enterprise wifi instead of their own network. 

  • Incident Management System for Mobile Phone (Android and IOS)

    Dear Solman Gurus,
    We have already Incident Management System in our Solman 7.1 .
    We are using it efficiently, but we want to use it in mobile phones also(android and ios).
    Also we have a web link and we can manage our incident management system in this link http://xxsolman.xxxxxxxx.com:8006/support . We are using for WEB also for Incident Management System.
    My question is ; how can i use it for Mobile Phone Operation systems(android and ios) ? Which guide should i follow ? Should i upgrade pacth or something in our solman ?
    Looks like Android application is : SAP IT Incident Management
    Best Regars

    Hi Kemal,
    You need to adopt the Mobile strategy for ITSM to use this. Broadly speaking, the ITSM apps can be accessible either via internet or intranet. If you plan to use the apps outside your company network then you would need Sybase tools to enable this as shown below;
    The detailed information is available here
    Mobile Applications for SAP IT Service Management - SAP IT Service Management on SAP Solution Manager - SCN Wiki
    Regards,
    Vivek

  • WindowMedia for mobile phone

    hello all !
    i'm a new member..i want to write a WindowMedia software for mobile phone. what method and ebook which i need. and can i download it where?. show me , please..thank a lot

    I would have thought the best place to go would be www.microsoft.com for this information.
    It is not easy to integrate Windows Media into a Java application.
    The phone also needs to be compatible with Microsoft applications (Windows CE) which kind of obviates the need for Java entirely.

  • I am trying to register my iPhone 4S for mobile phone insurance but the website does not recognise the serial number. Has anyone experienced this?

    I am trying to register my iPhone 4S for mobile phone insurance but the website does not recognise the serial number. Has anyone experienced this, and any idea how I can rectify the problem?

    When using the iPhone with the Windows OS, you need to have the Apple Mobile Device Service running. It should start automatically when you start the computer, but sometimes things happen. Use this support document to try and restart the service. See if that helps.
    http://support.apple.com/kb/TS1567

  • Anymore mobile phones with fax modem feature

    In my area, fax is still the preferred mode. Unfortunately, it seems hard find any mobile phones with fax modem built in. I was just wondering if anybody knows any mobile phone with fax modem built inside for sale anymore?
    My Nokia 9500 is old already. The hinge crack badly recently. But I still use it because I need the fax modem feature.

    Fax-handling facilities are now longer standard in any phones, because the demand for this diminished courtesy of e-mail and the mobile internet.
    There have been, however, third party apps that provide certain fax functionality. A quick web search threw up these...
    http://www.clickapps.com/moreinfo.htm?pid=18851&section=S60V3
    http://handheld.softpedia.com/get/Fax/Mobile-Fax-S60-19311.shtml
    ...both of which should work on the E90, which is the closest thing to a successor for the 9500 that you'll find.

  • I cannot watch video's in the mobile web without a currect flash player for mobile phone! what virsion of player i need?

    I can't watch video's in the mobile web without a currect flash player for mobile phone's. what do I need to do(what is the currect virsion)?
    If you have an answer just send it to me by e-mail!
    [email protected]

    If you find anything out please share.  I have flash projects (SWF) files created in Captivate 5 that play fine in Flash and Dreamweaver, but freeze up on the web in safari, firefox, opera and chrome.  Even files that used to play just fine.  This upgrade has been a nightmare - I have spent hours troubleshooting to no avail.  It does not seem to be a problem for windows users - only macs.

  • Control key is set for u2018Process manufacturing with Inspectionu2019

    Hi,
    Which control key is set for u2018Process manufacturing with Inspectionu2019?
    What is the meaning of FS Relationship

    Hi,
    Control Key for "Process manufacturing with Inspection" is PI02.
    It is meant for Manufacturing is with Process Order with Quality inspection.
    Further this Control key you need to set in CR01/CR02 -Default Values-> Operation Default Values----> Control Key
    Regards,
    Tejas
    Edited by: Tejas  Kantilal Pujara on May 21, 2008 8:54 AM

  • Person or Group colum in the SharePoint list retrieves empty value for Mobile phone property

    Person or Group colum in the SharePoint list retrieves empty Mobile phone for some users although thoses users have Mobile Phone values in the User Proifles. This happens only for some users. For some users  it shows Mobile phone for
    some days and after some days it dess not show Mobile Phone though Mobile Phone entries are in the User Profiles for those users.
    Appreciate any help to fix this.
    Thanks in Advance!
    Narayana Reddy
    Narayana Reddy G

    Hi Narayana,
    According to your description, my understanding is that the person or group column retrieved an empty value for Mobile phone in SharePoint 2010.
    Please go to the hidden User Information List using
    http://<SiteCollectionUrl>/_catalogs/users/detail.aspx , check the value of Mobile phone.
    Please go to CA->Monitoring->Review job definitions, scroll to User Profile to SharePoint Full Synchronization
    and
    User Profile to SharePoint Quick Synchronization, make sure they work well.
    In addition, please take a look at :
    http://donalconlon.wordpress.com/2012/03/02/sharepoint-user-information-list-is-not-being-updated/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Wireless Security Camera for mobile phone

    hi everyone,
    i would like to know can we provide wireless security camera for mobile phones. is there any service providers for that.
    please clarify me.
    thanks in advance

    I asked because we do not want to recommend any cams that may confuse you even more.  The more details we have on why you are confused the better.
    Check out this website which may offer some suggestions:  www.ralphjohns.co.uk/EZJim/EZJimpage1.html.  EZJim's site mostly deals w/iSight and various other video methods.  He actually hangs out in the iSight forums which is where you can possibly post to him.  He's there quite regularly.  He's the most likely person here who can perhaps offer you many suggestions.
    Over in the QuickTime forums there is QuickTimeKirk, another video expert.
    Good luck!

  • Software for mobile phone and the G4

    I have recently obtained a Panansonic GD87 mobile phone and would like to transfer images and data from it to my G4. I contacted Panasonic and they stated that the GD87 is not compatible with Mac.
    Does anyone know if there is any software which can enable me to connect the phone to my G4 please?
    Thanks in advance!

    if its bluetooth enabled, just use bluetooth (you'd need to buy a third-party adaptor), you can google app called Nokia Collector i heard that works with some phones outside nokia (although it fails to work with my nokia 6682 which is really annoying)

  • How to create sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

Maybe you are looking for

  • Exception CX_SY_NO_HANDLER triggered

    Hi All, What could be the reason for this exception. Here is my code: method EXTRACT_DATA . DATA: start_date type sy-datum,       end_date type sy-datum,       pos_title(40) type C,       employee_type(1) type C,       location(4) type C,       pers_

  • Different colored screen on start up

    Recently when I open my computer, the screen comes up in different colors of light blue, green, yellow and a few others. It looks sort of like a tie-die shirt. The first time it lasted about 5 seconds, the second time about 20 seconds and the third t

  • Change run with many projects

    Hello experts! On our BW a lot of projects are working. Every projects is managing his data loading processes on its own. Sometimes we have the problem that one change run is locking others while running at the same time. As far as I know both change

  • Nothing display on creen

    I open webpage:"http://crackzplanet.org/get_217869_Alias.SketchBook.Pro.v2.0_crack.html" but nothing display.Only this page.

  • Plz help to write a function

    i want to create a function in which whenever i used isnull(cloumn_name,' ')<>' ' i want to invoke the function nvl(column_name,' ')<>' ' eg- select * from table_name where isnull(cloumn_name,' ')<> ' ' should return the same output as select * from