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



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


NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS  picture

NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS

$80.75



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00



Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing picture

Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing

$239.99



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591

$28.23







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