That is good to know, btw please remember that you cannot use a custom
mock location provider for challenge-submissions.

The judges will not adb-push kml or properties files

On Apr 10, 9:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thanks Ram. I have a properties file and my provider is working now.
> However, I still get null from getBestProvider and
> getLastKnownLocation. I guess I can workaround this for now.
>
> On Apr 10, 12:22 am, Ram <[EMAIL PROTECTED]> wrote:
>
>
>
> > >>I have realized now I can implement a mock location provider,
>
> > Btw you may want to keep in mind that as 
> > perhttp://groups.google.com/group/android-challenge/browse_thread/thread...
> > 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)- 
> > > Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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