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." <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>     
>>> For latest SDK it doesn't work even with permissions setup :(
>>>       
>>> On Mar 20, 9:52 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>>>       
>>>> You probably don't have permissions set to use gps.
>>>>         
>>>> On Mar 20, 4:25 am, siddhusingh <[EMAIL PROTECTED]> 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 -
>>     
> >
>   


-- 
Thanks.

Muthu Ramadoss
http://intellibitz.com
http://linkedin.com/in/tellibitz
http://groups.google.com/group/android-chennai
http://slideshare.net/intellibitz
+91 44 22476750

We develop innovative solutions for mobile handsets, using Android.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Challenge" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-challenge?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to