1 message in com.googlegroups.android-challengeRe: [android-challenge] Re: GPS issue
FromSent OnAttachments
Muthu Ramadoss24 Mar 2008 07:28 
Subject:Re: [android-challenge] Re: GPS issue
From:Muthu Ramadoss (muth@gmail.com)
Date:03/24/2008 07:28:31 AM
List:com.googlegroups.android-challenge

Hi Alex,

It must be 'uses-permission'..

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

Alex Pisarev wrote:

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

Both permissions were added, but still didn't work. So what I did, I put a workaround similar to:

if (loc==null) // use mock location

On Mar 21, 11:10 pm, "Dan U." <dan.@gmail.com> wrote:

Could you post what you added for permissions in the manifest?

If the permissions are properly set, there could be an issue with the emulator. I know in m3 I had a problem where the gps provider didn't always get installed. I never did figure out what caused it.

On Mar 21, 4:35 am, Alex Pisarev <alex@gmail.com> wrote:

For latest SDK it doesn't work even with permissions setup :(

On Mar 20, 9:52 pm, "Dan U." <dan.@gmail.com> wrote:

You probably don't have permissions set to use gps.

On Mar 20, 4:25 am, siddhusingh <Sidd@gmail.com> wrote:

Hi, How can we mock the gps call in the emulator. I am getting null for location variable in the line mentioned below.

LocationManager locationMgr = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location = locationMgr.getCurrentLocation("gps");

Is there any setting which should be specified. Cheers, Sid- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -

We develop innovative solutions for mobile handsets, using Android.