1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

app help

Discussion in 'Android App Developers' started by mathkid95, Dec 3, 2010.

  1. mathkid95
    Offline

    mathkid95 Developer Developer

    Joined:
    Dec 3, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I have a class called MyLocationListener where I have onLocationChanged, etc. to check for location updates. This is a separate class, and I have another class above that where I am doing some main calculations. I need to perform an action if the location is changed, but the code needs to be in the above class. This won't work because 1. onLocationChanged is void and 2. it takes in a loc parameter.

    Is there a handy way to check if the location is changed in onLocationChanged that I can use in the above class? Please help!

    p.s. If you did not really get what I said, can you please reply and I can rephrase it? I really need an answer for this question
  2. Matthewop
    Offline

    Matthewop New Member

    Joined:
    Nov 24, 2010
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    totally sorry. I am not so professional about it. Hope some experts here can give the answer! :(