Supporting rotation sensors in Symbian across multiple devices in one executable

Posted by magicbadger on Stack Overflow See other posts from Stack Overflow or by magicbadger
Published on 2010-04-22T09:30:58Z Indexed on 2010/04/22 9:33 UTC
Read the original article Hit count: 154

Filed under:

I'm puzzling my head as to how some application appear to support the couple of Rotational Sensor APIs for Symbian, specifically the Sensor API and the Sensor Framework (both the 5th ed. and the 3rd ed. FP2 backport).

For example, I believe that Gravity will support rotation in N95 and also newer models from the same binary (could be wrong there...).

If I use the Sensor Framework then my app will not install on an N95 (it gives me a System Error -1), whereas if I use the Sensor API (RRSensor) then it will only install on an N95 and no other phones. This is most likely due to the available libraries on those devices.

I am trying to find some way of abstracting things such that I can use exactly the same binary for all devices. The only alternative I can see is trying to use ECOM plugins and then installing the relevant library using conditionals in my PKG file.

Does anyone know of a better/easier way?

© Stack Overflow or respective owner

Related posts about symbian