954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Different build questions with j2me/rim api

I am making an application for blackberries and wanted to make use of touch capabilities on touch capable phones. Is there a way to do this without making two separate projects (like I would in c with preprocessors that check the compiler)?

An idea of what I'm trying to do would be like(if it were in C):

#ifdef RIM_JRE_5.0
//some touch sensitive code
#endif
#ifdef RIM_JRE_4.3
//some plain old buttons code
#endif


I was able to find something like this here: http://www.slashdev.ca/javapp/ but I was wondering if there was a way to do it natively
and I'm not sure if that project is able to detect the jre

burgercho
Light Poster
47 posts since Jul 2008
Reputation Points: 26
Solved Threads: 11
 

Seems that since version 4.0 rapc natively supports, weird that it didn't come up on any searches, I only found it through the bb-ant-tools docs ( http://bb-ant-tools.sourceforge.net/docs#preproc ). Maybe because I was searching for a preprocessor for a jre and not specifically rapc.

burgercho
Light Poster
47 posts since Jul 2008
Reputation Points: 26
Solved Threads: 11
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: