This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes how create UI for CDC devices? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how create UI for CDC devices?" Watch "how create UI for CDC devices?" New topic

how create UI for CDC devices?

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi all,

I'm new to this micro things. I was wondering that can I create different UIs for CLDC and CDC devices? This is because if we know that PDA has more resources then we can use more functionality and better UI you know.

I guess if we create UI having CLDC in mind then it would work on CDC devices but will not use power of the device.

If we want to create CDC device specific UI then do I have to create different UI code for different devices? (as CDC might be device specific) OR are there any standard CDC UI APIs that will allow me write code once and run it on PalmOS, PDA from different companies...?

Please help me in resolving my confusion?

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
I guess that this helps me understand that I can't write CDC API code on Windows and test it on any emulator. I would try it with Linux and see if it works.

Other thoughts are welcome.

Michael Yuan
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
The CDC does not have any UI API. To run UI applications on PDA devices (e.g., PocketPC or Nokia Communicator or Sony/Ericsson P900 but NOT PalmOS), you need the Personal Profile (PP). The UI API in the current PP is just AWT 1.1. In the next release of PP, it will be upgraded to swing 1.4.

Using the Nokia Developer Suite with Eclipse, you can test PP UI applications for Nokia 9500 on a windows emulator. For other devices, you need to install the compiled Java classes into the device in order to the test UI -- no emulators.

I think it sucks. But CDC/PP has always been second class citizen in the J2ME world.

The PDAP post to the kvm list you mentioned refers to JSR 75. It has completely changed its scope in the past 2 years and no longer provide any UI support for Palm devices. 2 years is an eternity in J2ME.

Seam Framework:
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: how create UI for CDC devices?
It's not a secret anymore!