BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-13-2005, 02:37 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7100
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default NEW to BB programming

Please Login to Remove!

Thanks in advance.
I am a student and want to learn BB programming.
I have little Java developemtn experience.
Can anyone guide me to books/articles easy to understand.

I am thinking of doing a project where i can do a db excahnge
Like update a Address book on to a website.
Is this possible?
I would appreciate all your help.

Thanks
Al
Offline  
Old 06-13-2005, 07:20 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

First off, go get the JDE. After that, download the JDE reference...
The javadocs are very good too:
http://www.blackberry.com/developers...api/index.html
Lots of info at the RIM site...
Offline  
Old 06-13-2005, 09:45 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2005
Location: Columbus, OH
Model: 7100G
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are no books on BB programming you will have to rely on the Documetation provided from RIM.

I think your project sounds possible too.
Offline  
Old 06-14-2005, 09:12 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7100
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you so much for the info
I have downloaded and installed the IDE and downloading the documentation.
I wasnt able to find the any documentation for using the IDE. (I am able to run the samples, but if i try to create a project of my own, it isnt running. Am sure that i am not using the IDE properly.)
Offline  
Old 06-14-2005, 09:13 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7100
Posts: 30
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

is there any sample project or guideline on doing db programming over the web? (ie BB and website communications)
Offline  
Old 06-20-2005, 05:33 AM   #6 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

afaik BB does not support db-handling on its own. There are (expensive) extensions to the java running on it to allow a BB to connect with a db.

There are two solutions without spending money though:
- use a server-client model. The JSE running on your server can work with dbs just fine.
- use a web-frontend. If you want it simple a php-site called with your data as arguments can provide a connection to a database. I have implemented some simple operations this way.
Offline  
Old 06-20-2005, 06:40 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7520
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right now, I'm doing some simple J2ME to get a decent idea of how Java works with phones. I installed the JDE and saw that there are some custom APIs that would work nice alongside MIDP 2.0.
Offline  
Old 06-20-2005, 09:47 PM   #8 (permalink)
BlackBerry Extraordinaire
 
Join Date: Dec 2004
Location: in a house...
Model: lots
Carrier: Rogers
Posts: 1,148
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

For any type of db access I have done on the BB I have used a translator (see custom middleware) and xml. It's fairly easy and scales real well... you can build an app for 5 users, and scale it up to 5000 if need be...

cd.
Offline  
Old 06-20-2005, 09:56 PM   #9 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7520
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by corey@12mile
For any type of db access I have done on the BB I have used a translator (see custom middleware) and xml. It's fairly easy and scales real well... you can build an app for 5 users, and scale it up to 5000 if need be...

cd.
Do you use PHP, ASP, JPS, .NET or other? I'm looking at working with BB to manipulate the data locally then resolve it to the server.
Offline  
Old 06-20-2005, 10:02 PM   #10 (permalink)
BlackBerry Extraordinaire
 
Join Date: Dec 2004
Location: in a house...
Model: lots
Carrier: Rogers
Posts: 1,148
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I write activex objects in visual basic to manipulate the data and push it out to aspx, which is what the handheld talks to on the server side of the httpconnection.

cd.
Offline  
Old 06-20-2005, 10:08 PM   #11 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Model: 7520
Posts: 40
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by corey@12mile
I write activex objects in visual basic to manipulate the data and push it out to aspx, which is what the handheld talks to on the server side of the httpconnection.

cd.
Are you creating a .dll file then? Just wondering, why push it out as .aspx? Wouldn't classic .asp work as well?

Sorry if this sounds so basic :( just sorta trying to find out a bit more. So be patient
Offline  
Old 06-21-2005, 12:32 PM   #12 (permalink)
BlackBerry Extraordinaire
 
Join Date: Dec 2004
Location: in a house...
Model: lots
Carrier: Rogers
Posts: 1,148
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

For the most part I create a class library in visual studio, hook into the COM objects, then write my code. This all gets compiled into a dll, it's pretty easy to do in visual basic.

The reason I do this is for scaling the app up. The middleware (class files I build) can then be run and managed in the app pool as oppsed to having to create individual instances through asp or aspx. It just kind of makes the code run faster and takes up less system resources as you have component services handling the grunt work as opposed to IIS.

The reason I use aspx is for future consideration, everything I do right now will run fine through straight up ASP, but support for ASP is on the way out, while aspx is more current. There isn't a whole lot of difference between asp and aspx for what I need to do.

cd.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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