Hello Friends,
I'd made an application in J2ME in low level UI using Canvas.
I want to convert this source code in BlackBerry MIDLet.
So i can run my source code (application) on BlackBerry devices.
So please tell me how i can do this.
Hello Friends,
I'd made an application in J2ME in low level UI using Canvas.
I want to convert this source code in BlackBerry MIDLet.
So i can run my source code (application) on BlackBerry devices.
So please tell me how i can do this.
thanks & Regards.
Nilesh
Have look here and download the eclipse plugin. Just import your application and build. Sounds easy but maybe you have to change some things in your source code, but it won't be a lot...
i should pretty much run out of the box (theoretically). however, for network and many other stuff, you will need a blackberry signature. (plus the tools as benni said). make sure you don't have hardcoded references to the screen size, too. and remember there is no soft key on a blackberry.
Thanks...friends for reply...
Actually i do not give any hardcore size to canvas
But ...my all application depends upon keypress,keyrelease,keyrepeat..event....
So i'm confuse ,cause i do not use any action event......i want event like above events...
is there any way to call keyevents ...??????
thanks & Regards.
Nilesh
key events are called the same way on a blackberry, since it _is_ midp. you will receive keyPressed like you receive it on your regular nokia.
shouldn't.
but you won't know for sure until you actually try.
Hi Nilesh
You try coding in BB like this
public void keyPressed(int keyCode)
{
super.keyPressed(keyCode);
//#ifdef RIM
//# if(keyCode == BlackberryKeyConstants.BACK_KEY)
//# {
//# dispatcher.fireActionEvent(new ActionEvent(this, EventConstants.SHOW_HOME_SCREEN));
//# }
//# if(keyCode == BlackberryKeyConstants.MENU_KEY)
//# {
//# dispatcher.fireActionEvent(new ActionEvent(this, EventConstants.SHOW_HOME_SCREEN));
//# }
//#endif
}
which wld help u convert the code to BB
Hello friends,
I tried & do some porting for Blackberry app.
But i want keycode of Menukey & Back key
as well as ..... how i can disable action of this keys.
thanks & Regards.
Nilesh
those don't have keycode and cannot be caught nor disabled. (the back key is automatically assigned to a Command.BACK type Command if you use LCDUI screens)
so is there any way to assign soft key..to black berry like options & back (normally we see in nokia apps)
thanks & Regards.
Nilesh
You will most probably find more RIM BlackBerry knowledge on RIM's BlackBerry developer forums, rather than on a Nokia forum.