On 30/10/2008, fadden <[EMAIL PROTECTED]> wrote:
>
>  On Oct 30, 5:44 am, "Bradley Kite" <[EMAIL PROTECTED]> wrote:
>  > I am running this bit of code within the emulator (SDK 1.0r)
>  >
>  >                 Log.d(TAG, "I am here - 1");
>  >                 Location currentLocation =
>  > lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
>  >                 Log.d(TAG, "I am here - 2");
>  >
>  > The logcat output never shows the second log statement - and nothing
>  > after this code gets executed - its like the thread just dies??
>  >
>  > Can any body advise me on how to debug this further?
>
>
> I would guess that the second statement is throwing an exception.
>
>  The easiest way to tell is to attach a debugger, set a breakpoint on
>  the second statement, do a "step into" and trace through it.  Eclipse
>  works well for this.
>
>  Also, make sure you're watching the log with the Eclipse plugin, stand-
>  alone DDMS, or "adb logcat" to watch for events.


Hi there.

You were right - it looks like an exception is being thrown.

I've updated my permissions to include ACCESS_FINE_LOCATION and it now
works as expected!

Many thanks
--
Brad.

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

Reply via email to