×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    13

    Accelerometer + activate function

    Hi everyone,

    I'm working on a project using PyS60 and a Nokia 95 8G. I'd like to make possible that when I shake the mobile phone, a function is activated. For instance, you can easly write in a script that a function is activated when you press any key. I want the same, but activating the function when you shake the mobile phone. Any suggestion, how should I start?

    Thanks in advance :-)

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Accelerometer + activate function

    Quote Originally Posted by Danko22 View Post
    Hi everyone,

    I'm working on a project using PyS60 and a Nokia 95 8G. I'd like to make possible that when I shake the mobile phone, a function is activated. For instance, you can easly write in a script that a function is activated when you press any key. I want the same, but activating the function when you shake the mobile phone. Any suggestion, how should I start?

    Thanks in advance :-)
    hello Danko22

    you need to first go through the PyS60 API reference which will help you a lot.

    Other than you can go through this tutorial by fellow champion JOM. This clearly explains how to handle sensors in PyS60.

    Hope this all helps you

  3. #3
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: Accelerometer + activate function

    Thanx gabaa88 bro btw can u find a sensor tutorial For 5800

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Accelerometer + activate function

    Quote Originally Posted by apacheking View Post
    Thanx gabaa88 bro btw can u find a sensor tutorial For 5800
    hello siraj

    AFAIK there is no tutorial about the sensors for S60 5th edition yet accept the API documentation.

    Regards
    Gaba88

Similar Threads

  1. Memory leak and accelerometer data
    By dunff2k in forum Symbian
    Replies: 1
    Last Post: 2009-05-13, 18:48
  2. Porting C Open source.
    By debasish1234 in forum Open C/C++
    Replies: 7
    Last Post: 2008-01-28, 11:06
  3. how to create an ayncronous function?
    By GeKI in forum Symbian
    Replies: 5
    Last Post: 2006-02-17, 11:29
  4. Replies: 1
    Last Post: 2003-07-11, 14:41

Posting Permissions

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