use getLastKnownLocation as your first location.
On Nov 9, 4:55 am, Nickname <[EMAIL PROTECTED]> wrote:
> Please allow me to ask a question related with onLocationChanged
> event:
>
> How does everybody make the mock gps provider send onLocationChanged
> events automatically instead of manually by clicking on the "Send"
> button in the DDMS Device Control view?
>
> My app needs the event from the very beginning of its execution.
> Manual clicking on the "Send" button cannot catch the timing of my
> app.
>
> On Nov 8, 3:26 pm, Christine <[EMAIL PROTECTED]> wrote:
>
> > I was wondering, does an onLocationChanged event happen when the
> > location device gets turned on? That is, if you're in SF, you turn off
> > gps, you take a plain to Amsterdam, then you turn on gps, does the
> > device generate an onLocationChanged event? Or does that happen when
> > you've changed location after turning on the gps?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---