Support for rotation sensors in Symbian on multiple devices in one executable file

I am puzzled how some application supports a pair of Rotational Sensor APIs for Symbian, in particular, the Sensor and Sensor Framework APIs (both the 5th and 3rd FP2 subtitle).

For example, I believe that Gravity will support rotation in the N95, as well as newer models from the same binary (maybe there isn’t there).

If I use the Sensor Framework, then my application will not be installed on the N95 (it gives me System error -1), whereas if I use the sensor API (RRSensor), it will only be installed on the N95, and the other phones. This is most likely due to the available libraries on these devices.

I am trying to find some way to abstract things so that I can use the exact same binary for all devices. The only alternative I see is trying to use ECOM plugins and then install the appropriate library using conditional expressions in my PKG file.

Does anyone know of a better / easier way?

+4
source share
1 answer

If you need to use different APIs, I suggest creating several DLLs that implement the same interface and selectively installing them on the device depending on the device ID. SIS files allow this.

+2
source

Source: https://habr.com/ru/post/1307642/


All Articles