Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,294 members, 7,807,999 topics. Date: Thursday, 25 April 2024 at 02:07 AM

Fix For Blackberry Torch Virtual Keyboard Bug. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Fix For Blackberry Torch Virtual Keyboard Bug. (3391 Views)

Why I Prefer To Develop For Blackberry Compared To Android / I Doubt If You All Know The Name Of Some Of The Keys On An English Keyboard! / Android Torch Light / Flash Light App Tutorial (2) (3) (4)

(1) (Reply)

Fix For Blackberry Torch Virtual Keyboard Bug. by Andrew3(m): 3:09pm On Dec 11, 2011
This thread is based on numerous mails i received from nairalanders concerning the virtual keyboard on the new torch series.
This bug is well noted by rim and will be corrected in the next major update. The on screen keyboard appears gray and faded
making it unusable. This is due to an errror in the configuration algorithm. here is a fix. use bbsak and read system, export
net_rim_bb_vtkeyboard.cod

decyrpt and open, take not of the bolded, its a small mistake but the effect is gigantic.

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
import net.rim.device.api.ui.Keypad;

class KeyCheckerRIMCanvas extends FullScreen
{
RichTextField mheader        = new RichTextField("Press END to exit."wink;
RichTextField mLastKeyDown   = new RichTextField("Last KeyDown"wink;
RichTextField mLastKeyUp     = new RichTextField("Last keyUp."wink;
RichTextField mLastKeyRepeat = new RichTextField("Last keyRepeat."wink;

    public KeyCheckerRIMCanvas()
    {
        super();
        getVirtualKeyboard().setVisibility( VirtualKeyboard.SHOW_[b]FORCE[/b]);
        add(mheader);
        add(mLastKeyDown);
        add(mLastKeyRepeat);
        add(mLastKeyUp);
    }

public boolean keyDown(int keyCode, int time)
{
if (Keypad.key(keyCode) == Keypad.KEY_END)
{
System.exit(0);
}

mLastKeyDown.setText("KeyDown: " + Keypad.key(keyCode));
return true;
}

public boolean keyRepeat(int keyCode, int time)
{
mLastKeyRepeat.setText("KeyRepeat: " + Keypad.key(keyCode));
return true;
}

public boolean keyUp(int keyCode, int time)
{
mLastKeyUp.setText("KeyUp: " + Keypad.key(keyCode));
return true;
}
}

class KeyCheckerRIM extends net.rim.device.api.ui.UiApplication
{
    public static void main(String[] args)
    {
        KeyCheckerRIM instance = new KeyCheckerRIM();
        instance.enterEventDispatcher();
    } 
    public KeyCheckerRIM()
    {
pushScreen(new KeyCheckerRIMCanvas());
    }
}
Re: Fix For Blackberry Torch Virtual Keyboard Bug. by ewizard1: 8:04pm On Oct 09, 2013
Sorry sir.. Simply Rubbing the back of the fone on a Magnet fixes it. tongue

(1) (Reply)

Django Programmers Thread / Unit Testing / Creating Com With C++

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.