MEMORIAL DAY SALE: Save 15% on ALL BlackBerry Accessories! Use Coupon Code MEM12.
Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 04-20-2009, 08:29 PM
CrackBerry Abuser
Device(s): 9700 (Bold)
Carrier: AT&T/Cingular
Pin: 21C3344D
 
Location: Ames, IA
Join Date: Feb 2009
Posts: 256
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Missing classes

So I'm a long time developer, but new to Java. I'm going through some examples and I've found that many of the basic classes are missing.

java.util.List
java.net.*

There are many more but am I missing something here? Is there some package that I should be using instead of java.* for some of these classes? Since theres very few good "How To" 's for programing the BB, I'm kind of at a loss, I guess I'll just have to start creating my own classes.
__________________
BlackBerry Addict in Iowa
PIN: 21C3344D
www.twitter.com/jeffparent
Reply With Quote Tip this Post
  #2  
Old 04-20-2009, 10:49 PM
CrackBerry Abuser
Device(s): 9000 (Bold)
Carrier: Vodafone
 
Join Date: Oct 2008
Posts: 494
Likes Received: 0
Thanked 1 Time in 1 Post
Default

The BB JVM does not implement all of Java (naturally). You will need to adapt by looking at the API javadoc and subclassing/using what is provided to you (eg, you can make a List from a Vector, which is provided).
Reply With Quote Tip this Post
    Thread Author   #3  
Old 04-21-2009, 08:31 AM
CrackBerry Abuser
Device(s): 9700 (Bold)
Carrier: AT&T/Cingular
Pin: 21C3344D
 
Location: Ames, IA
Join Date: Feb 2009
Posts: 256
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

The only problem that I'm really having is that (for this project) I wanted to use someone else's API (Google's Picasa API) which of course uses some of these classes that are not available. Without them, I either have to a) not use the API, b) change the API to use something else. Both of which I'm fine with, but it just makes me a little sad that I have to do one or the other.
__________________
BlackBerry Addict in Iowa
PIN: 21C3344D
www.twitter.com/jeffparent
Reply With Quote Tip this Post
  #4  
Old 04-21-2009, 04:00 PM
CrackBerry Abuser
Device(s): 9000 (Bold)
Carrier: Vodafone
 
Join Date: Oct 2008
Posts: 494
Likes Received: 0
Thanked 1 Time in 1 Post
Default

or, c) implement those parts of the API that are missing, perhaps.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Missing classes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes