The name of the permissions is wrong. Try this:

    <uses-permission
android:name="android.permission.ACCESS_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_GPS" />

On Mar 26, 4:26 pm, Markus <[EMAIL PROTECTED]> wrote:
> Hello out there,
> I'm trying to develop an android application which uses GPS for that I
> implemented following way to get my location:
> m_locationManager =
> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> Location location = m_locationManager.getCurrentLocation("gps");
> But everytime the variable location is null. In the manifest I've
> added the permissions
> <uses-permission
>                         
> android:name="android.Manifest.permission.ACCESS_LOCATION"/>
>         <uses-permission
>                 android:name="android.Manifest.permission.ACCESS_GPS"/>
> With the tool DDMS I've added the file kml at the directory /data/misc/
> location/gps.
> When I'm calling the method getProviderStatus("gps") I'm getting the
> status 0 which meand that the Service is not availible. I've got no
> idea why. Can anybody helpt me?
>
> thanks
>
> Markus
--~--~---------~--~----~------------~-------~--~----~
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]
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