×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    [Announce] Rol-a-Bol v1.0 (Sensor API)

    Greetings,

    http://jouni.miettunen.googlepages.com/rol-a-bol

    Version History

    * Version 1.0, release date 2008-06-15

    Tested with N82 (pyS60 1.4.3).

    Code Samples

    * How to check availability of Sensor API
    * How to use Sensor API
    * How to handle raw Sensor API data
    * How to mix Sensor API and arrow keys to do same thing
    * How to handle and modify RGB colors
    * How to draw colorful bubbles

    Rol-a-Bol

    Totally useless but fun little script. Can be used WITH and WITHOUT Sensor API (use arrow keys).

    Turn your Sensor API phone to roll the balls to given direction. Each time there is movement, also the color changes a little bit.

    This was fun,

    --jouni

  2. #2
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: [Announce] Rol-a-Bol v1.0 (Sensor API)

    Quote Originally Posted by JOM View Post
    http://jouni.miettunen.googlepages.com/rol-a-bol
    * How to draw colorful bubbles
    Cool, kids liked it a lot!

    One suggestion for the future:

    stop doing CPU intensive (and power greedy) animations when it is not necessary: use appuifw.app.focus callback to determine when the application goes to the background and foreground.

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    115

    Re: [Announce] Rol-a-Bol v1.0 (Sensor API)

    Looks good mate so thanx

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] Rol-a-Bol v1.0 (Sensor API)

    Quote Originally Posted by aaaaapo View Post
    stop doing CPU intensive (and power greedy) animations when it is not necessary: use appuifw.app.focus callback to determine when the application goes to the background and foreground.
    Great advice for about everything I do: never imagined that anyone would let any python application to run at background. Will check that from now on and put script on auto pause (unless there is a very good readon not to).

    Thanx,

    --jouni

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] Rol-a-Bol v1.0 (Sensor API)

    UPDATE v1.1

    - Disable screensaver while application is running
    - Disable everything when lose focus (also Sensor API)
    - Enable everything when regaining focus

    Tested with Nokia Energy Profile v1.1 and change between focus vs non-focus is huge! Thanx aaaaapo for the suggestion to save battery!

    Cheers,

    --jouni

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] Rol-a-Bol v1.0 (Sensor API)

    UPDATE v1.2

    http://jouni.miettunen.googlepages.com/rol-a-bol

    Updated coordinate calculations, color calculations and made Sensor API handling a bit less "jumpy" - which means that it looks a bit better now.

    Enjoy,

    --jouni

Similar Threads

  1. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×