On Thu, Dec 8, 2011 at 12:27 PM, m4kz <moraga....@gmail.com> wrote:

> The problem is that startLocationUpdates is always called inmediatly after
> stopLocationUpdates or at any time, but i am not triggering any message for
> that, it is just happening.
>

Have you used the debugger to step through and see the call stack when this
happens?


> My code is at follows:
>
> @Override
>        public void handleMessage(Message msg) {
>            case STOP_LOCATION_UPDATES:
>                stopLocationUpdates();
>
>            case START_LOCATION_UPDATES:
>                startLocationUpdates();
>
>              ......more cases.......
>
> }
>

Is that your actual code? Because A) that shouldn't compile without a
"switch" and B) you have no "break" statements, so control will fall down
to your start case, which might explain your issue.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to