×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    21

    urgent help required

    Alerts/alarms:
    It will provide alerts/alarms on our mobile based upon the location
    It will be useful while travelling during nites you can set the application to give an alert when you reach a particular place
    the idea is to develop an application which will track a location contineously & when a maych is found it will give an alert on our cell i.e will make our cell to vibrate

    Automatic operation
    Change profiles of your cell phone based on locations.
    Example:
    While entering college premises, the mobile device will automatically be switched to the silent mode.


    plz suggest me which language will be useful or how should i begin with this application

    thanks in advance............

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: urgent help required

    Ya .,,,it's possible using pyhton..

    You can change anything with the change in Cell-id.

    Suppose cell-id changes , you can change the song or profile or something else according to your requirement..

    See the below code in python :

    Code:
    import location
     import appuifw
     import e32
     import audio
    
     class LocationInformerApp:
                   def __init__(self):
                       self.lock=e32.Ao_lock()
                       self.exitflag = 0
                       self.old_exit_key_handler=appuifw.app.exit_key_handler
                       self.old_app_body=appuifw.app.body
                       appuifw.app.exit_key_handler=self.set_exit
    
                 def set_exit(self):
                     appuifw.app.body = self.old_app_body
                     self.exitflag=1
    
    
                 def run(self):
                     print u'*** Location Log ***'
                     prevLoc = u''
                     while not self.exitflag:
                         if prevLoc <> location.gsm_location():
                              print location.gsm_location()
                              filename = "e:\\Sounds\\Digital\\test.MP3"
                              S=audio.Sound.open(filename) # play the sound file
                              S.play()
                         prevLoc = location.gsm_location()
                         e32.ao_sleep(0.1)
    
    
    
     appuifw.app.screen='normal'
     lapp=LocationInformerApp()
     lapp.run()
    Best regards,

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: urgent help required

    I would suggest you to take alook at python for S60 reference manual.

    The application that you want to make is possible with python. And as per your requirement see the Position module which will gives the position that you can compare with the require one.
    Location module is not useful in your case as you may not be know the cell ID of all the places. or it needs a lots of works to collect it.
    Last edited by james1980; 2010-09-23 at 02:38.
    Jajal Mehul

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    21

    Re: urgent help required

    can u plz help me how to run this code in my nokia 5800


    thanks in advance

  5. #5
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: urgent help required

    Your phone 5800 is S60 5th edition device.

    See this article for making application for S60 5th edition devices. : http://wiki.forum.nokia.com/index.ph...e_applications

  6. #6
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: urgent help required

    Quote Originally Posted by crazyshrenik View Post
    can u plz help me how to run this code in my nokia 5800


    thanks in advance
    Can tell us if you had install python to your phone or not. ?

    If you had already installed than you can write the python program in any text editor and save the file with .py ext. into ur pc. than you can run it after sending it to your phone from python.
    Jajal Mehul

Similar Threads

  1. Replies: 1
    Last Post: 2008-07-09, 10:15
  2. Urgent required
    By dinesh547 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2008-02-13, 14:08
  3. Urgent Help Required
    By cybrog_ed in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-07-10, 07:07
  4. Urgent help required
    By bluetooth45 in forum Bluetooth Technology
    Replies: 1
    Last Post: 2002-12-23, 11:10
  5. Urgent help required
    By bluetooth45 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-12-17, 10:02

Posting Permissions

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