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


Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99



Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ picture

Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ

$199.00



Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$66.60



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$40.00



Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower picture

Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower

$55.24



Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp picture

Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp

$104.99







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