05-17-2010 10:11 AM
I currently have built an app that is compatable with all bb's except the storm. I want to incorporate the ability to touch screen as well as the rotation orientation of the app, is there any tutorials or anything to show how to make an existing app compatable with the storm?
Do I have to use 4.7 in order to do this? or is there a way to do it without 4.7
Thanks in advance
05-17-2010 10:36 AM
You need 4.7 to compile it but you can use preprocessor defines to isolate all 4.7 and higher code. The touch function for fields is:
protected boolean touchEvent(TouchEvent message)
and the rotation is:
You isolate those pieces of code and compile it with 4.7/5.0 and it should work fine.
05-17-2010 11:15 AM
If your application doesn't use any fixed size graphics or custom painting to the screen, it should work for the Storm pretty well.
The key to making it work on all devices is to keep controls as standard as possible.
05-17-2010 11:32 AM
05-17-2010 02:56 PM
I am using the JDE. Any articles/readings/samples on how to use pre processor ? Thanks a lot
Here is an example of how to use the preprocessor:
05-26-2010 10:19 AM
rcmaniac - I need to compile with 4.7/5.0 however I want my app to run on OS > 4.5? Is there anyway to have the application run > 4.5 with having specific code for 4.7/5.0 storms?
It seems like when I take the approach you suggested, and compile in 4.5 JDE the compiler will complain about importing the touch classes and if I compile in 4.7 JDE and run the app on a 4.5 OS simulator/device it throws an exception about HomeScreen not found (which is simply an issue of building it forward compatable not backwards).
Am I just doing it all wrong or is this even possible?