Location Providers

by Bradley Kite » Sun, 19 Oct 2008 08:39:27 GMT


Sponsored Links
 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.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Launching share option in menu

Hi

I'm trying to make a 'share' option in menu, just like in the gallery
application.
I am using the following code:

 MenuItem item2 = menu.add(0,0,0, "Share");
        item2.setOnMenuItemClickListener(new
MenuItem.OnMenuItemClickListener() {
            public boolean onMenuItemClick(MenuItem item) {
                Intent intent = new Intent(Intent.ACTION_SEND, null);
                File f = new File
(Environment.getExternalStorageDirectory()+"/Ania.jpg");
                intent.setData(Uri.fromFile(f));

                startActivity(Intent.createChooser(intent,"Share a
picture or sth"));
                return true;
            }
        });

When i press the Share button in the menu i get "No applications can
perform this action".
What am I doing  wrong? (im working on a real device not the
emulator).

regards
Lukas Mosdorf
--~--~---------~--~----~------------~-------~--~----~

2. How does Gallery's "Send" Intent Work?

I'm trying to setup an intent that allows users to share an Jpeg,
stored in the applications file cache.

Trying this:

Intent i = new Intent( Intent.ACTION_SEND );
i.putExtra( Intent.EXTRA_STREAM, uri );
i.setType( "image/jpeg" );
startActivity( Intent.createChooser( i, "Where to share?" ) );

It works for the eMail application, but not for any other app (like
Facebook or Twitdroid). Gallery supports them. Does anyone know, hoe
exactly Gallery does it?

Thanks for any help!
Mark

--~--~---------~--~----~------------~-------~--~----~

3. how to create our own BorderLayout

4. Run application at device startup:

5. MapView handling KeyEvent.KEYCODE_DPAD_CENTER

6. How to animate a drawable inside an App Widget?

7. corporate e-mail does not support EXTRA_SUBJECT