Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 35
Registered: ‎02-01-2010
My Device: 8300
My Carrier: Etisalat

midlet for blackberry

I have a midlet that should be adapted for blackberry devices, the problem is when converting the jar file to cod, the application runs well, but has some problems concerning the key event codes(e.g. back button).

I want a quick method to edit my source code to suit the blackberry device event codes.

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: midlet for blackberry

Means you want to know that How Button event work in blackberry.

and where the write code where the Button is clicked.

New Developer
Posts: 35
Registered: ‎02-01-2010
My Device: 8300
My Carrier: Etisalat

Re: midlet for blackberry

need to know what should I change in my midlet source code to suit to blackberry devices.

 

such as, application entry point, the GUI classes like Canavas , the back key button handle...

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: midlet for blackberry

Like Java, the Entry Point of Application is

public static void main(String ar[])

{

 

 

And for Buttonevent We Use FieldChangeListener

And the Method for this

public void fieldChanged(Field f, int context)

{

 

}

 

And For User Interface we use UiApplication class.

And for screen Use MainScreen Class

 

U have to use All Rim Library.

 

------------------------------------------------------------------------------------

Press Kudoed If got Solution.

Developer
Posts: 223
Registered: ‎06-08-2010
My Device: pearl8100
My Carrier: airtel

Re: midlet for blackberry

[ Edited ]

Hi,

Midlet also is supported in blackberry devices.But both coding has several variations.As nitinverma said those are basic things.And also you cant change anything particular in midlet for blackbery code.That would consume more work.So if you want nice user interface than midlet.You can program it is in native blackberry coding.That has good user Interface.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please press the kudos button on the left side to thank the user that helped you.
New Developer
Posts: 35
Registered: ‎02-01-2010
My Device: 8300
My Carrier: Etisalat

Re: midlet for blackberry

So, I should re-implement the application for RIM devices? no luck for just modifing some issues like event code values?

Highlighted
New Developer
Posts: 35
Registered: ‎02-01-2010
My Device: 8300
My Carrier: Etisalat

Re: midlet for blackberry

can I use Java ME UI elements in RIM containers or screens?