BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-06-2006, 02:13 PM   #1
lorennorman
Knows Where the Search Button Is
 
Join Date: Jan 2006
Model: 7520
Posts: 22
Default Coding for vs Converting to Blackberry

Please Login to Remove!

Hi, i'm a seasoned J2ME developer starting development on a Blackberry.

I wanted to find out what the difference between actually coding for the BB from scratch, using rim libraries and such, and coding just generic MIDP 1.0 and using the JDE tool to convert the .jar to a .cod file was?

I will be making use of Bluetooth as well as HTTP requests, and i need heavy encryption between everything. Anyone know if there is a functional difference?

Thank you,
Loren
Offline  
Old 01-07-2006, 12:32 PM   #2
eradis
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Default

You can actually use a pure MIDP application directly on the BlackBerry.
You can also use the RIM libs in that MIDP application. The only thing you can't do is mix the UI elements (if you are using MIDP UI elements you can't use RIM UI elements and vice versa).

Hope that helps.
Offline  
Old 01-09-2006, 10:47 AM   #3
lorennorman
Knows Where the Search Button Is
 
Join Date: Jan 2006
Model: 7520
Posts: 22
Default

So,
- i can write a straight up MIDP app, with MIDP UI elements, compile as jar and port to cod
- i can write a MIDP app, using only RIM libraries for UI mangement, compile as jar, and port to cod
- or i can write either of these and compile as cod in the first place
...and results should all be the same, or at least similar?

No thoughts on Bluetooth, HTTP, or encryption? The app is way basic, aside from some simple interactions using those fringe things...
Offline  
Old 01-09-2006, 04:34 PM   #4
eradis
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Default

Quote:
So,
- i can write a straight up MIDP app, with MIDP UI elements, compile as jar and port to cod
- i can write a MIDP app, using only RIM libraries for UI mangement, compile as jar, and port to cod
- or i can write either of these and compile as cod in the first place
...and results should all be the same, or at least similar?

No thoughts on Bluetooth, HTTP, or encryption? The app is way basic, aside from some simple interactions using those fringe things...
1. Yes - Usually works straight out of the box (take the jar/jad and directly compile to cod). Sometimes there are some porting issues because of the thumbwheel etc.
2. Yes - startApp() is like main() and you just need a handle to the UiApplication(its sort of like Display) to use the RIM UI elements.
3. Actually everything is first compiled into a jar then into a cod (even if you are using RIM's app model).

Bluetooth - you will need to use RIM's net.rim.device.api.bluetooth package.
HTTP - All MIDP compliant device need to support HTTP (minimum), RIM uses the javax.microedition.io (CLDC).
RIM has their own crypto packages - RIM Crypto Packages (see javadocs)

All you need to do is import the correct packages/classes. Again as I mentioned the only thing you can't do is mix UI elements. If you look at the javadocs there are 2 Graphics classes, 2 Font classes etc. (i.e. one MIDP - javax.microedition.lcdui.Graphics, one RIM - net.rim.device.api.ui.Graphics)
I would suggest reading through the BlackBerry App. Dev. Guides Vol 1 & 2.

Last edited by eradis; 01-09-2006 at 04:45 PM..
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Vintage SII Seiko Instr Smart Label Printer Plus SLP1000P for IBM Mac Computer
$69.99
Vintage SII Seiko Instr Smart Label Printer Plus SLP1000P for IBM Mac Computer  pictureVintage McDonald's Big Mac Builder Blue Chef Apron 1981
$20.0
Vintage McDonald's Big Mac Builder Blue Chef Apron 1981 pictureVINTAGE Mac C-5 SAE 1/2" COMBINATION WRENCH
$10.0
VINTAGE Mac C-5 SAE 1/2Vintage Dan Mac Product Loud Ring Extension Bell Rare Used Old With Cord
$69.0
Vintage Dan Mac Product Loud Ring Extension Bell Rare Used Old With Cord pictureVintage MACK TRUCKS Bulldog Hard Hat / Wilson Jet-Cap / USA
$7.0
Vintage MACK TRUCKS Bulldog Hard Hat / Wilson Jet-Cap / USA picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.