Thanks for this info Dianne,

Going through the source I have managed to figure out that additional
location providers can be loaded by putting the class-name into a file
on the system called /data/location/[myProvider]/class

The LocationManagerService will then instantiate this class, and add
it to the list of location providers where they can be used like the
GPS and Location providers.

The bit of the puzzle I appear to be missing, however, is how I can
create the file /data/location/[myProvider]/class when my .apk is
installed. I could try create the file the first time my application
is started, however by the looks of it the permissions on the
directory will not allow my application to create such a
file/directory.

Are there easier ways in which people can integrate custom location
providers with the base Android platform?

Kind Regards
--
Brad.



On 19/10/2008, Dianne Hackborn <[EMAIL PROTECTED]> wrote:
> They are implemented in the platform code, which hasn't yet been released.
> I believe subclassing by apps is only for development on the emulator to
> generate fake location information.
>
>
>  On Sat, Oct 18, 2008 at 1:49 PM, Bradley Kite <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi all,
> >
> > The LocationProvider class
> (android.location.LocationProvider) is
> > documented as being an abstract super-class, However I could not find
> > any concrete classes (eg GPSLocationProvider, CellLocationProvider,
> > WifiLocationProvider etc.).
> >
> > Does any body (either from within google, or otherwise) know which
> > location providers are actually implemented?
> >
> > How would one go about implementing other LocationProviders?
> >
> > Many thanks in advance.
> > --
> > Brad.
> >
> >
> >
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to