You Are Here:

Community: Developer Discussion Boards

#1 Old Accelerometer + activate function - 2009-06-30, 12:05

Join Date: May 2009
Posts: 13
Danko22
Offline
Registered User
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 :-)
Reply With Quote

#2 Old Re: Accelerometer + activate function - 2009-06-30, 12:09

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: Accelerometer + activate function - 2009-06-30, 15:11

Join Date: Nov 2008
Posts: 74
apacheking
Offline
Regular Contributor
Thanx gabaa88 bro btw can u find a sensor tutorial For 5800
Reply With Quote

#4 Old Re: Accelerometer + activate function - 2009-06-30, 17:08

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak and accelerometer data dunff2k General Symbian C++ 1 2009-05-13 19:48
Porting C Open source. debasish1234 Open C/C++ 7 2008-01-28 12:06
请哪位好心人告诉我几个 Navigation key 的keyCode的宏定义 daijuntang Symbian 9 2006-03-30 09:36
how to create an ayncronous function? GeKI General Symbian C++ 5 2006-02-17 12:29
funny Prob bout function definitions and their 'line positions' in MSVC advocatee General Symbian C++ 1 2003-07-11 15:41

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ