>>I have realized now I can implement a mock location provider,

Btw you may want to keep in mind that as per
http://groups.google.com/group/android-challenge/browse_thread/thread/4412631fb4d5e285/27e9df98fd31c5c1#27e9df98fd31c5c1
challenge entries cannot submit kml files and so they cannot rely on
new mock location providers.

I haven't used the getLastKnownLocation. So I don't know why you're
running into errors.

However, it appears that you haven't created a properties file yet.
You may want to look at the gps properties file and then create a
similar one for your mock location provider

On Apr 9, 11:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have realized now I can implement a mock location provider, and have
> done that by creating a kml file from google earth, creating a
> directory parallel to gps, and placed 2 files in it: location and
> properties. I have also tried location.kml, but both return null from
> getCurrentLocation and getLastKnownLocation when I use my provider.
>
> I see this in logCat:
>
> D/dalvikvm(  516): Exception Ljava/lang/NullPointerException; from
> LocationManagerService.java:226 not caught locally
> E/JavaBinder(  516): *** Uncaught remote exception!  (Exceptions are
> not yet supported across processes.)
> E/JavaBinder(  516): java.lang.NullPointerException
> E/JavaBinder(  516):    at
> android.server.LocationManagerService.readLastKnownLocation(LocationManager­Service.java:
> 226)
> E/JavaBinder(  516):    at
> android.server.LocationManagerService.getLastKnownLocation(LocationManagerS­ervice.java:
> 706)
> E/JavaBinder(  516):    at android.location.ILocationManager
> $Stub.onTransact(ILocationManager.java:163)
> E/JavaBinder(  516):    at android.os.Binder.execTransact(Binder.java:
> 274)
> E/JavaBinder(  516):    at android.dalvik.NativeStart.run(Native Method)
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to