Search |
||
Success! LWUIT on BlackberryPosted by wsnyder6 on July 9, 2008 at 3:41 PM PDT
This will be short and sweet.
To work around a race condition (see this thread), LWUIT needs to run on a separate thread on the Blackberry. Taking this into effect, together with a modified LWUIT distribution (removing references to M3G helper classes and the 3D Transition classes), I've finally got the demo to work on a simulator. Granted, this in the JDE, not NetBeans. I need to figure that out yet. In the JDE, make sure you have the modified LWUIT dist set up as a library type project, and then make your a LWUIT midlet project dependent on that library. Oh yeah, since LWUIT really relies on the presence of soft keys, you may want to use the BlackBerry UiApplication class to catch key events and wheel events, then translate those to the corresponding UI action. But you can also keep the same q/w and o/p softkeys in place. Proof that it works!
»
Related Topics >>
Mobile and Embedded Comments
Comments are listed in date ascending order (oldest first)
Submitted by pjulien on Thu, 2008-07-10 05:33.
Are you able to use the wheel to move around?
Are you able to push the wheel button to trigger an action?
Submitted by wsnyder6 on Thu, 2008-07-10 05:38.
You need to catch Wheel-clicks with the Blackberry UiApplication class and translate them to LWUIT actions.
Haven't tried moving the wheel around yet since I've been working in the simulator.
Submitted by pjulien on Thu, 2008-07-10 07:49.
That's interesting but if you do that won't your app become a non-midlet app not suitable for LWUIT?
Submitted by wsnyder6 on Thu, 2008-07-10 08:03.
No, because you can use the default application instance.
Though, be warned, I have read in the Blackberry dev forums that this is not officially supported.
UiApplication.getUiApplication().addTrackwheelListener(myTrackwheelListener);
Submitted by pjulien on Thu, 2008-07-10 08:10.
Yes, this is what I saw, on a midlet, the UIApplication instance is not null.
Submitted by jayaskre on Thu, 2008-07-10 10:16.
That's great. How easy now is it to update a real blackberry with LWUIT?
Submitted by wsnyder6 on Thu, 2008-07-10 10:45.
I haven't tried loading this demo on the actual device yet. I will update this entry when I do.
Submitted by andyfei on Wed, 2008-07-23 11:37.
Good, may I ask where/how to get the modified LWUIT distribution? Thanks.
Submitted by wsnyder6 on Sun, 2008-07-27 19:29.
Hello,
You will need to make it yourself by removing the M3G dependent classes from the base LWUIT dist. (Unzip the LWUIT jar, delete the classes, and zip it back up).
Submitted by milanexe on Tue, 2008-08-19 23:08.
Hi wsnyder6 , I am also trying to run LWUIT on Black berry JDE . The code is compiling , but when i am runing the emulator hang. Can u pls help me on the same
Thanks
Milan
Submitted by milanexe on Tue, 2008-08-19 23:16.
Can u pls provide me a small SAmple code and Steps to run , Thanks
milan
mailid :milanexe@yahoo.co.in
Submitted by sood28 on Sun, 2008-09-14 06:24.
Hi wsnyder6, woult it be possible to get some sample code and steps , thanks,
kunal
sood28@yahoo.com
Did you get the code or tut,
Submitted by nimithingu on Fri, 2009-09-18 04:56.
Did you get the code or tut, can you mail it to me also at nimit_love1@gmail.com
What I want is the same currently I am not able to start the application created in J2ME with LWUIT UI, when I port it, there is a ref member out of range error every time.. please help me..
Thanks.
Submitted by wsnyder6 on Wed, 2008-10-08 11:37.
I promise that as soon as my LWUIT app gets out the door, I will drop some more code and examples. Look for it in the next week or so...
Submitted by daniel_asv on Wed, 2008-11-12 12:36.
Hello wsnyder6, can you please send me too the sample code and steps, thanks,
daniel
daniel@macropro.com.mx
Submitted by sawal_xp on Fri, 2008-11-14 02:50.
i need the code lwuit with run in blackberry, please publish it to another mobile developer that use lwuit component for their GUI..it's so important to us, to know how the lwuit can run in blackberry device..
thanks..:)
Submitted by amedikonda on Wed, 2008-11-19 16:04.
Hello wsnyder6,
It would be great if you can mail some sample code to amedikonda@gmail.com.
Thanks
Anil
Submitted by siva80sankar on Mon, 2009-03-16 06:52.
hii im sivasankar
there is no complete information in implementing the blackberry application over LWUIT.
i need the ful details reg- running and implementing in NetBeans.
i even followed certain steps which given in netbeans forum,its no use.making my netbeans dump.it not working.
im stil stuck up.try to help me over this problem.
With regards
Sivasankar.p
Submitted by siva80sankar on Mon, 2009-03-16 06:53.
hii im sivasankar
there is no complete information in implementing the blackberry application over LWUIT.
i need the ful details reg- running and implementing in NetBeans.
i even followed certain steps which given in netbeans forum,its no use.making my netbeans dump.it not working.
im stil stuck up.try to help me over this problem.
With regards
Sivasankar.p
|
||
|
|