开发者

Supporting rotation sensors in Symbian across multiple devices in one executable

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 devic开发者_Python百科es. 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?


If you need to use different APIs, I suggest making multiple DLLs that implement the same interface and selectively install them to device depending on device ID. SIS files allow that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜