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


NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL picture

Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL

$8.95



Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M picture

Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M

$2.95



Dell OEM Latitude Rugged Extreme 7214 Ribbon Cable for SD/USB Cable IOCBL7214 picture

Dell OEM Latitude Rugged Extreme 7214 Ribbon Cable for SD/USB Cable IOCBL7214

$4.95



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99







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