Felipe Andrade – Mobile Developer Usually talking about cross-platform development: WRT | Flash Lite | Python | Symbian C++ | Qt

19Oct/092

Symbian C++: How to use Accelerometer on Symbian 5th Edition

I'm publishing this Symbian C++ source code snippet since there is a lot of issues between S60 Platform Services and accelerometer on Flash Lite 3.x. I can describe a few here:

1) The accelerometer sensor data stop working on idle screen;
2) You have to set a high frame rate on the Flash side to get real time sensor data;
3) When connected to a socket server the Flash Lite runtime reduces the frame rate to 1 then like the previous statement we can't get real time sensor data;
4) In the chart example the memory gets full after about 12 minutes, the app crashes and usually shows a phone message: 'Not enough memory to load file'. (Thanks Steven to point it out)

The source code is based on Forum Nokia Wiki articles. Hope this help someone! :)

How to use S60 Platform Services to Create accelerometer based User Interaction with Adobe Flash Lite

Download source code

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Comments (2) Trackbacks (0)
  1. Thanks Felipe, I’m just working on a short training video on this subject too! So while our content will crossover, it should all cover the topic pretty well. Thanks for your work in the community.

  2. Hi Dale, thanks for commenting! Note that S60 platform services is not stable to read sensor data, after two weeks of Flash Lite work we discover this issue :/


Leave a comment


No trackbacks yet.