1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to "do something" based on location

Discussion in 'Android Development' started by wolfie, Nov 2, 2010.

  1. wolfie

    wolfie Lurker
    Thread Starter

    Hello,
    I've written an app that detects my location and posts it to a server. It works fine. Let's call this app 1.

    Now I'd like to write a background service that launches app 1 when the device is located in a specified location, which will be held in the device's database.

    Can someone point me to examples or information on how to create a background service that runs automatically when the phone is turned on? Also if anyone has seen articles on how to efficiently implement this that would be helpful. (For example, if the device is a hundred miles from the nearest location of interest, it should sleep for some logical amount of time before checking the it's location again.)

    Thanks...
     



    1. Download the Forums for Android™ app!


      Download

       
  2. wolfie

    wolfie Lurker
    Thread Starter

  3. wolfie

    wolfie Lurker
    Thread Starter

    Never mind, I found some info after googling proximity alert.
     
Loading...

Share This Page

Loading...