Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
bbd01
Posts: 10
Registered: ‎04-13-2009

Handling source for multiple Blackberry versions

Hi everyone,

 

What is the best way to handle the source for multiple Blackberry versions?  For example, I have an app which uses net.rim.device.api.ui.TouchEvent, which I only need in 4.7+.  Of course, when I compile my app for 4.5, it can't find this class and throws an error.

 

However, I don't want to keep two separate code bases just because of this.  Is there an easy way to handle this?  How is everyone else doing it?

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008

Re: Handling source for multiple Blackberry versions

Please use plain text.
New Developer
bbd01
Posts: 10
Registered: ‎04-13-2009

Re: Handling source for multiple Blackberry versions

Thanks.  I always managed to find what I've needed before by searching, but to be honest, in this case, I had no idea what to search for!
Please use plain text.