[android-developers] gps

2011-11-02 Thread Hamid Ghasemi
Hi
I want  gps offline for htc  desire s
thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] gps

2011-11-13 Thread jaggu
how to find gps in emulator with xml response
please help me

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] gps

2011-07-11 Thread karthik
Hello everyone!

I am a starting developer in android apps. I ve started my project in
GPS.

So,I need to get a Google Map API Key.

I followed the instructions in the developers website.

I located the debug.keystore file in C:/Users/Karthik/.android/
debug.keystore

But my debug.keystore is a file and not a folder.So,I couldn't execute
the keytool to get the fingerprint

Pls provide me  a solution.

Regards,
Karthik.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] gps

2010-11-05 Thread Harshal
hi,
I am new to android development. I tried to craete a gps locator app. I am
getting the following error:

Error type 3
Error: Activity class {org.me.gps/org.me.gps.MainActivity} does not exist.

my MainActivity class extends MapActivity.
any help will be greatly appreciated..

-- 
Harshal

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS

2010-12-10 Thread Hendrik Greving
I know how to read the GPS status etc. but how do I turn the chip on/off? There 
is nothing in LocationManager/Provider or GpsStatus or Satellite 

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS

2011-05-11 Thread Innocent
Hi guys I'm working on a project and my GPS on the emulator am using
doesn't seem to function!! WHEN I try to run a simple program to show
my location it does not get the location!! Could some one please
help!

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS emulation

2009-04-28 Thread olivier

Hi all,

I am currently trying to simulate GPS fixs with android emulator, but
I encountered some problems. I can run the app, clic on the send
button in the emulator control, but, only the first click provides a
position. I am running an ubuntu jaunty, eclipse and SDK 1.5, on a
french system with the locale EN_US
Here is my code :

private class MyLocationListener implements LocationListener
{
@Override
public void onLocationChanged(Location loc) {
if (loc != null) {
String s = "";
s += loc.getLatitude();
s += "   ";
s += loc.getLongitude();
Toast.makeText(getBaseContext(),
"Location changed : Lat: " + loc.getLatitude() +
" Lng: " + loc.getLongitude(),
Toast.LENGTH_SHORT).show();
Log.i("GPS", s);
}
else {
Log.i("Gps","loc_null");
}
}

@Override
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
Log.i("Gps","onProviderDisabled");
}

@Override
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
Log.i("Gps","onProviderEnabled");
}

@Override
public void onStatusChanged(String provider, int status,
Bundle extras) {
// TODO Auto-generated method stub
Log.i("Gps","onStatusChanged : " + provider);
}
}

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
   //---use the LocationManager class to obtain GPS locations---
lm = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);

locationListener = new MyLocationListener();

lm.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
0,
0,
locationListener);

}

Can you tell me what I am doing wrong ?

Regards,

Olivier

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



[android-developers] GPS coverage

2010-02-11 Thread ian
Does the GPS getLocation still work if you are outside the range of
cellphone coverage?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Signals

2011-07-04 Thread Abdul Samad
Hello,

i recently developed a location based service in android, my apps
works with GPS signals in conjunction with google maps.

problem is that, it takes lot of time to get the gps signals,  when
you are in a dense area (sorrunded by buildings) u dont get any signal
at all,  BUT if we talk about google app "Latitude" , whenever we
start it, it catches the GPS signal at a very fast rate no matter if
we are in dense area or not.

if we use location sources as  NETWORK_PROVIDER instead of
GPS_PROVIDER  then accuracy of location is the issue.

how can i get fast GPS signals?  or Latitude app works with special
premium mapView key ,   if it is , can a developer get that sort of
key which enables the app to get fast GPS signal receiving?

please also tell me, what is the minimum and maximum error that can
possibly occur in accuracy if we obtain our location by
NETWORK_PROVIDER instead of GPS_PROVIDER

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS blues

2012-02-25 Thread bob
Are there any major differences in GPS functionality between phone
models/android versions?

The GPS on my LG Optimus with Android 2.2 seems wrong a lot.  Also, it
takes like 2 minutes or so to resolve if it ever resolves.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Location

2011-10-22 Thread Goutom
Hi

I have no internet connection.I want ot get Gps location point using gps.Is
it possible ?

Something like this.
Location location = Get_Last_location();

I am using the folloing providers:

LocationManager.NETWORK_PROVIDER
LocationManager.GPS_PROVIDER

but no internet connection.

Thanks in advance.

Regards
Goutom

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS filtering

2011-10-28 Thread Ab Caballero
Using requestLocationUpdates(), the GPS fetches more than one location
fix per interval. I have attempted to use hasAccuracy() and
getAccuracy() to filter the amount of data that is fetched. However,
it doesn't limit the fetch to one single point. Is there any way to
filter the data so that I capture one point (the most accurate fix)
and one point only?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] gps

2011-11-13 Thread TreKing
On Sun, Nov 13, 2011 at 9:59 AM, jaggu  wrote:

> how to find gps in emulator with xml response
> please help me
>

Your question makes no sense.
http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Gps Accuracy

2011-09-26 Thread Tahir Satti
I am working on Android Google Maps as my semester project and rigt
now i am at very begining phase.Can any one tell me about the
accuracy of GPS...Can i retrieve the position of my home on android
google maps.Please send me some links so that i can present the
facts infront of me faculty

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS logging

2011-10-17 Thread Ab Caballero
Hi,

I'm using requestLocationUpdates() to update the location of a vehicle
and I only need to update its location every minute or so. So I have
the parameters set accordingly.

However, I also want to use the location service to allow a driver to
log and time stamp events throughout his journey and I need more
granularity then I get from the one minute interval setting. If I'm
using the same service for both jobs, is there someway I can grab data
once a minute for the vehicle location but also grab a location fix
when a certain key is pressed?

Any help is appreciated.

Andrew

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS logging

2011-10-17 Thread Ab Caballero
Hi,

I'm using requestLocationUpdates() to update the location of a vehicle
and I only need to update its location every minute or so. So I have
the parameters set accordingly.

However, I also want to use the location service to allow a driver to
log and time stamp events throughout his journey and I need more
granularity then I get from the one minute interval setting. If I'm
using the same service for both jobs, is there someway I can grab data
once a minute for the vehicle location but also grab a location fix
when a certain key is pressed?

Any help is appreciated.

Andrew

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] gps

2011-07-11 Thread Raghav Sood
It is a file. I got the finger print fine. Try running the command again.
Maybe you made a typing error.

On Sat, Jul 9, 2011 at 9:59 AM, karthik  wrote:

> Hello everyone!
>
> I am a starting developer in android apps. I ve started my project in
> GPS.
>
> So,I need to get a Google Map API Key.
>
> I followed the instructions in the developers website.
>
> I located the debug.keystore file in C:/Users/Karthik/.android/
> debug.keystore
>
> But my debug.keystore is a file and not a folder.So,I couldn't execute
> the keytool to get the fingerprint
>
> Pls provide me  a solution.
>
> Regards,
> Karthik.
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps

2011-07-11 Thread Robin Talwar
All keystores are file just check the path again and type carefully.
this could be irritating for beginners

On Mon, Jul 11, 2011 at 7:49 PM, Raghav Sood  wrote:

> It is a file. I got the finger print fine. Try running the command again.
> Maybe you made a typing error.
>
>
> On Sat, Jul 9, 2011 at 9:59 AM, karthik  wrote:
>
>> Hello everyone!
>>
>> I am a starting developer in android apps. I ve started my project in
>> GPS.
>>
>> So,I need to get a Google Map API Key.
>>
>> I followed the instructions in the developers website.
>>
>> I located the debug.keystore file in C:/Users/Karthik/.android/
>> debug.keystore
>>
>> But my debug.keystore is a file and not a folder.So,I couldn't execute
>> the keytool to get the fingerprint
>>
>> Pls provide me  a solution.
>>
>> Regards,
>> Karthik.
>>
>> --
>> 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
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Raghav Sood
> http://www.raghavsood.com/
> http://wiki.androidappcheck.com/
> http://www.telstop.tel/
> https://market.android.com/developer?pub=Raghav+Sood
>
>  --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Abhishek Talwar
9953395712

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps

2011-07-11 Thread Vinod Pache
try this link and follow the steps given in it



On Mon, Jul 11, 2011 at 7:51 PM, Robin Talwar
wrote:

> All keystores are file just check the path again and type carefully.
> this could be irritating for beginners
>
>
> On Mon, Jul 11, 2011 at 7:49 PM, Raghav Sood  wrote:
>
>> It is a file. I got the finger print fine. Try running the command again.
>> Maybe you made a typing error.
>>
>>
>> On Sat, Jul 9, 2011 at 9:59 AM, karthik  wrote:
>>
>>> Hello everyone!
>>>
>>> I am a starting developer in android apps. I ve started my project in
>>> GPS.
>>>
>>> So,I need to get a Google Map API Key.
>>>
>>> I followed the instructions in the developers website.
>>>
>>> I located the debug.keystore file in C:/Users/Karthik/.android/
>>> debug.keystore
>>>
>>> But my debug.keystore is a file and not a folder.So,I couldn't execute
>>> the keytool to get the fingerprint
>>>
>>> Pls provide me  a solution.
>>>
>>> Regards,
>>> Karthik.
>>>
>>> --
>>> 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
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.raghavsood.com/
>> http://wiki.androidappcheck.com/
>> http://www.telstop.tel/
>> https://market.android.com/developer?pub=Raghav+Sood
>>
>>  --
>> 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
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Abhishek Talwar
> 9953395712
>
>  --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

RE: [android-developers] gps

2011-07-12 Thread waheedtechb...@gmail.com
Hi
plz check the path..for windows 7:c:\Users\\.android
And for Windows xp the default android folder is:
C:\Documents and Settings\\Local Settings\Application Data\Android

Thanks and Regards
Abdul Waheed
http://waheedtechblog.blogspot.com
-Original Message-
From: Vinod Pache
Sent:  12/07/2011 11:12:59
Subject:  Re: [android-developers] gps

try this link and follow the steps given in it



On Mon, Jul 11, 2011 at 7:51 PM, Robin Talwar
wrote:

> All keystores are file just check the path again and type carefully.
> this could be irritating for beginners
>
>
> On Mon, Jul 11, 2011 at 7:49 PM, Raghav Sood  wrote:
>
>> It is a file. I got the finger print fine. Try running the command again.
>> Maybe you made a typing error.
>>
>>
>> On Sat, Jul 9, 2011 at 9:59 AM, karthik  wrote:
>>
>>> Hello everyone!
>>>
>>> I am a starting developer in android apps. I ve started my project in
>>> GPS.
>>>
>>> So,I need to get a Google Map API Key.
>>>
>>> I followed the instructions in the developers website.
>>>
>>> I located the debug.keystore file in C:/Users/Karthik/.android/
>>> debug.keystore
>>>
>>> But my debug.keystore is a file and not a folder.So,I couldn't execute
>>> the keytool to get the fingerprint
>>>
>>> Pls provide me  a solution.
>>>
>>> Regards,
>>> Karthik.
>>>
>>> --
>>> 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
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Raghav Sood
>> http://www.raghavsood.com/
>> http://wiki.androidappcheck.com/
>> http://www.telstop.tel/
>> https://market.android.com/developer?pub=Raghav+Sood
>>
>>  --
>> 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
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Abhishek Talwar
> 9953395712
>
>  --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS app

2011-07-15 Thread cmosser
Hi guys,
New to Android developing, but I do have slight experience in Php and
Java, so I'm not a complete newbie. From searching online, it appears
that it is pretty trivial to get GPS coordinates out of the phone. My
question is if there is any existing interface available that would
allow me to take the GPS coordinates and retrieve, for example, what
county I'm in, what the closest lake or state park is, etc. I imagine
that it will require some kind of interface with an external map
server; ArcGis, Google maps, etc. I don't necessarily want to show a
map of the closest lake, park, etc, but rather just use the name to
extract attributes of the lake, park, etc from a separate DB. I
already have the external DB, so it's just a matter of being able to
come up with a name to reference the entries. Is this something that
can be accomplished, perhaps with the google maps API?

Thanks in advance,
Chris

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Failures

2009-01-04 Thread enervatron

Hi all,

I've noticed a couple of problems with the onboard GPS on the G1 that
seem like
something's going wrong with the underlying interface to the gps
hardware.

1) There are times when the GPS just never synchs with the satellites
regardless
of whether it's in a clear area open to sky, etc, etc
2) Twice in the last two days I've had the GPS lose accuracy such that
it thinks
that its accuracy is ~1000m or more stuck like this for hours with
clear views,
etc, etc.

In both of these cases, a reboot immediately solves the problem. I
won't swear
that it *never* heals itself in this state(s), but it can go on for
hours and hours
and hours -- not a very good thing if 911 is trying to find you. These
problems
seem pretty likely to be related to me.

Note: it wasn't just my app that thought that the accuracy had gone
down the
tubes: Maps agreed as well.

I've checked around, and there doesn't seem to be too much information
on the
groups about GPS hardware anomalies. I'm not even sure if this is the
right place
as it looks pretty conclusively to me that this is a bug in the
interface driver...

Mike
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] GPS sample

2008-11-24 Thread Android geek
Hi all,

I an new to Android, and figuring out how to use GPS API withing my app. 

What am I trying to do?
- I need to find out the location of a android mobile say xyz, and its distance 
from me.

Please, any one can point to to a sample/resource that can help me.


SN
http://www.jsptube.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] GPS Functionality???

2008-08-19 Thread maximz2005

Hello,

I'm wondering - is there going to be  Android GPS functionality?
If yes, then how can I access the current coordinates of the phone?

Thanks,
-Maximz2005

--~--~-~--~~~---~--~~
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 Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] gps location

2016-04-13 Thread Merniz Abdelkader
Hi everyone
first, sorry for my bad English
 i want someone can help me. i want to create android application based on 
gps location , but this time is different
 i want for example to change the phone status(normal mode >to  silence 
mode.
for example if I get in my house or conference room in the university my 
phone will automatically set in the silence mode , and if i get out out the 
phone back to the normal mode
 thanks a lot

this is schema to my problem

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f0cc8441-93b3-43ed-a1a0-0c96b7acd917%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] gps accuracy

2010-07-21 Thread ecforu
I need a certain accuracy before I use the GPS location in my app.  However
I hasAccuracy() always returns false when using the emulator even when I
send it a position with the DDMS.  Is there a way to give the position
accuracy in the emulator?

Thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] gps problem

2010-12-28 Thread vivek
i am using android 2.0 emulator.
by using the geo fix command i am able to fix my geo location and it
is being picked up by the google maps too (on emulator). I want to
know where is the current geo location (supplied in geo command)
stored in emulator and can i retrieve it using adb shell ? If yes then
how

thanks and happy new year

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] gps

2010-11-05 Thread TreKing
On Fri, Nov 5, 2010 at 4:26 AM, Harshal  wrote:

> my MainActivity class extends MapActivity


And did you add it to your manifest?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps

2010-11-05 Thread Harshal
yes i have added map.jar, and my manifest.xml looks lyk this:



http://schemas.android.com/apk/res/android";
package="org.me.gps">














I am following the tutorial. I tired many times. doent seem to work :(

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps

2010-11-05 Thread Mark Murphy
Most likely, you are attempting to run your application in an emulator
or device that does not have Google Maps installed.

On Fri, Nov 5, 2010 at 3:03 PM, Harshal  wrote:
> yes i have added map.jar, and my manifest.xml looks lyk this:
>
>
> 
> http://schemas.android.com/apk/res/android";
> package="org.me.gps">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I am following the tutorial. I tired many times. doent seem to work :(
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] gps

2010-11-05 Thread Harshal
@mark
yes problem was with the emulator. Thank you..

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] GPS

2010-12-10 Thread TreKing
On Fri, Dec 10, 2010 at 6:47 PM, Hendrik Greving wrote:

> I know how to read the GPS status etc. but how do I turn the chip on/off?


You can't. You can bring up the settings screen to let the user turn it on
or off, if they want.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] GPS

2010-12-10 Thread Hendrik Greving
Eww. I just read about this. I guess this is a FAQ, but why can the Power 
Control Widget do this?
  - Original Message - 
  From: TreKing 
  To: android-developers@googlegroups.com 
  Sent: Friday, December 10, 2010 4:47 PM
  Subject: Re: [android-developers] GPS


  On Fri, Dec 10, 2010 at 6:47 PM, Hendrik Greving  
wrote:

I know how to read the GPS status etc. but how do I turn the chip on/off?

  You can't. You can bring up the settings screen to let the user turn it on or 
off, if they want.

  
-
  TreKing - Chicago transit tracking app for Android-powered devices


  -- 
  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
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Toggle

2010-10-23 Thread mist3r0
Hello guys,

I want active and deactive the GPS when I touch a button, without I
must run the intent that bring me into setting menu for active or
deactive GPS.

Can you help me??

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS not working

2009-03-24 Thread lucj06

Hello,

First post in an android forum, so... quite new to this topic
I didn't manage to get the following code working and didn't find
anything that could help me.
I'd just like to use the emulator to change the GPS coordinates and
track the effects in the logs.
I got the following from a tuto I found on the web:

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.util.Log;

public class GPSTest extends Activity {

private LocationManager lm;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Log.e("GPS","BEFORE GPS STUFF");

lm = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);

lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
new LocationListener(){
public void onLocationChanged(Location arg0) {
 String lat = String.valueOf(arg0.getLatitude());
 String lon = String.valueOf(arg0.getLongitude());
 Log.e("GPS", "location changed: lat="+lat+",
lon="+lon);
}
public void onProviderDisabled(String arg0) {
 Log.e("GPS", "provider disabled " + arg0);
}
public void onProviderEnabled(String arg0) {
 Log.e("GPS", "provider enabled " + arg0);
}
public void onStatusChanged(String arg0, int arg1, Bundle
arg2) {
 Log.e("GPS", "status changed to " + arg0 + "-" + arg1
+ "-");
}
});

}
}

The only thing I got in the logs is something like: "status  changer
to gps-1-"
and when I send new cordinates via the emulator, nothing happens
Why is "onLocationChanged" not triggered ?

thanks a lot for your help,
Luc

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



[android-developers] GPS low signal

2009-11-07 Thread miguel
Hi everyone.
I have a doubt I have been trying to solve since several days but
still giving me troubles.

Is there a way to detect when the GPS has lost signal (when I drive
through a tunnel for example)?
I tried to use te onStatusChanged listener because I thought that the
"temporarily unavailable" status was associated to a lack of signal
but it doesnt seem to work well.

I also tried to make a count with low preccison locations rounds to
trigger but it also fails.

Anyone knows any solution?

Thanks in advance and sorry for my bad english.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS proximity alerts

2009-08-05 Thread Tez

Hi,

Can anyone post some sample code or point me to a tutorial on usage of
GPS proximity alerts with PendingIntent?

cheers,
Earlence

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



[android-developers] GPS, Dummy coordinates

2009-08-05 Thread Lorenz

Hi ,
I'm developing a GPS application  and I am testing it with the
emulator. I'm using coordinates (generated by a Simulator)that are
quite close, 80 meters but the emulator seems that it doesn't receive
them. Only if the distance is more than some kilometers the emulator
seems to work..

I have istantiate the LocationManger with:

locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,*6,
*50, gpsListener);
*6 =seconds to upadate
*50 =meters to update

I have tried it also with *1000 and *0 but not much has change.
Furthermore when the emulator receives some coordinates, they are not
the same that the simulator has trasmits(but I think it is normal to
simulate a real GPS receiver).

Is there nobody that has the same problem?Or know how to solve it..
Thanks

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



[android-developers] GPS Access Question

2009-05-21 Thread Phil

Sorry if this is a stupid question- I'm still pretty new to Android
and have been completely unable to figure this out after much google
searching and hunting around in the documentation. *Note: I've been
coding in Eclipse with the Android SDK plugins, using the Google APIs
1.5 version.

I'm working on a project involving accessing the GPS, so I'm writing a
simple program that will do nothing more than access the current
location in order to familiarize myself with the GPS code.

Based on the examples I have found, I came up with the following code.

package com.example.gps;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;
import android.location.Location;
import android.location.LocationManager;
import android.location.Criteria;

public class HelloGps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Context context = getContext();

Location location = getLocation(context);

Toast.makeText(this, "Location = " + location.getLatitude() + " 
, "
+ location.getLongitude(), 0);
}

public static Location getLocation(Context context)
{
LocationManager manager = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
String provider = manager.getBestProvider(new Criteria(),
true);
Location location = manager.getLastKnownLocation(provider);
return location;
}
}

The issue I am having deals with the "Context context = getContext()"
line. Eclipse tells me that this is an error (but not why). It simply
tells me I should change it to getBaseContext(). If I try this, then
the program hangs. If I try removing it and running the getLocation()
function without the context thrown in there at all, as I have seen in
some other examples, then I get a similar error on the getSystemService
() function call. Eclipse tells me I should rename it, but does not
tell me why or what to.

Any help at all would be incredible, and sorry again if this is a
stupid question. Thanks!

-Phil

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



[android-developers] Gps sorting question

2010-02-05 Thread Jiri
How does one calculate the sorting of gps data in an order of close -> 
far. So when I have a list of geopoints, and I know my own location, how 
do I sort that data based on the closest by points.
Can I consider each geo point data as x and y positions and then do some 
trigonometry on the points relative to my reference point, or is that to 
simple ?


Jiri

--
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS signal strength

2009-07-10 Thread kalyan simhan
hi all..
how can i get the gps signal strength.. and the number of satellites..
im using android 1.1 sdk.. kindly help!  thanks in advance!!

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



[android-developers] GPS lat & long

2011-06-05 Thread ingy abbas
The GPS Latitude and longitude is not ( x and y Direction ) ?Is it z
direction ( slider some how )? When the map with overlay item appear
on the mobile it seems like the overlay items are Z direction Not
straight X and Y So is this True ?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] GPS Signals

2011-07-04 Thread TreKing
On Sat, Jul 2, 2011 at 8:33 AM, Abdul Samad wrote:

> how can i get fast GPS signals?


http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Finder application.

2013-01-16 Thread askl
Hello friends,

I want to get *current location of another GPS device*. can i develop like 
that application using android.?  
if you have any kind of solutions for develop app, please post me how to do 
it.

i really appreciate it. 
Thank you.
askl

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Status Listener

2011-12-22 Thread BearTi
Hi, I want to receive Events when GPS is tuned on and off.

Here my Class:

public class Main extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

LocationManager locMgr =
(LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
locMgr.addGpsStatusListener(mGPSStatusListener);

}

public Listener mGPSStatusListener = new GpsStatus.Listener() {
public void onGpsStatusChanged(int event) {
switch(event) {
case GpsStatus.GPS_EVENT_STARTED:
Log.d("POWER", "GPS ON > "+event);
break ;
case GpsStatus.GPS_EVENT_STOPPED:
Log.d("POWER", "GPS OFF > "+event);
break ;
}
}
};
}


Whats wrong here? I don´t receive any Events :-(
In the Manifest I´ve set 

Thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Fix Status

2012-01-05 Thread gotok
I am trying to detect when a GPS fix is made (i.e. when the gps icon
changes from blinking to solid) and when it is lost (i.e. when the gps
icon changes from solid to blinking). The system obviously knows when
these changes occur. I have tried using a broadcast receiver to catch
the intent:

IntentFilter filter = new
IntentFilter("android.location.GPS_FIX_CHANGE");

But I have not been able to get it to work. The intent seems to get
fired on GPS fix changes, but I
don't know how to determine if the intent means that the fix is good
or bad or something else. Is
this a legitimate intent (I found from a web search) for this purpose?
If not, what is the best way of detecting GPS Fix changes?

thanks...

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] gps waiting problem.

2012-01-12 Thread Dhaval Varia
i am writing one app.
in which
1. gps find lat long by calling update location
2. using this find address. this function calles in updatelocation

my que is:

update location called periodically.

it will call fun for getting address,inturn.

i dont want to call fun of getting address periodically.

it should call only once,after getting lat long.

plz help.

Plz  let me know how to start progressbar,start before calling
updatelocation and stop after getting addreas.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS doesn't work.

2011-09-01 Thread jabachan
I am acquiring the location information of GPS and NETWORK in the
following codes.

 locationMgr =
(LocationManager)context.getSystemService( Context.LOCATION_SERVICE );
 LocationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER,
0, 0, listener, Looper.getMainLooper() );
 
LocationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER,
0, 0, listener, Looper.getMainLooper() );

However, it becomes impossible to take the location information
suddenly and the following error occurs in LogCat.

 GpsLocationProvider: native_start failed in startNavigating()

I cannot grip the cause now at all.
[Cause?]
 1) A separate provider listener is registered in the instance of same
LocationManager.
 2) "0" is set to "minTime".

Please help.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Gps Location Path

2011-09-20 Thread nageswara rao rajana
Hi,

 I want to develop an application with google map, on which i need to
show the path i am travelling.
 Anyone please provide me sample code.

 Thanking you,
  Nagu.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Gps Accuracy

2011-09-26 Thread TreKing
On Thu, Sep 22, 2011 at 3:49 PM, Tahir Satti wrote:

> Please send me some links so that i can present the facts infront of me
> faculty
>

Try the documentation and Google.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS locations distance

2011-10-11 Thread nageswara rao rajana
Hi,

   While walking i am capturing the route locations and placing on map.
But i am unable to get the distance travelled with those locations.So please
anyone help me in this.

 I tried this but "Force close exception raising"


http://www.androidsnippets.com/calculate-distance-between-two-gps-coordinates


please any one provide me same code link.

Thanking you.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] GPS logging

2011-10-17 Thread Mark Murphy
On Mon, Oct 17, 2011 at 2:57 PM, Ab Caballero  wrote:
> is there someway I can grab data
> once a minute for the vehicle location but also grab a location fix
> when a certain key is pressed?

Call getLastKnownLocation() when the key is pressed. Though, if this
is to be used by drivers, I assume that by "key" you mean "really huge
on-screen button that can be readily pressed without the driver having
to look at the device". :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 4.0 Available!

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS vs Network

2011-08-25 Thread kypriakos

Hi all,

is there anywhere where I can find more information as to how these
work?
In other words, when I have them both turned on I do get coords from
both
of them (programmatically) even though the Network seems to be a bit
off,
which is expectable. What's not clear is, if I enable the GPS in the
phone's
configuration, let it pick up a set of coords and then disable it,
shouldn't
that be the lastknownlocation? It seems to me if the GPS is disabled
that
value is also gone. Is that correct?

Thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Code Sample

2008-10-20 Thread nick fox


Are there any gps code samples? I was looking through the
documentation but didn't find anything.

thanks
Nick
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] GPS accuracy problems

2009-02-11 Thread Anna PS

Hi,

I'm writing a mapping application. In simple terms, it sends some info
about the user's current location to a server when the user clicks on
a button.

I need the location to be absolutely correct, and when I first started
to implement LocationListener, I found that it often wasn't. So I've
used location.getAccuracy() to check the GPS accuracy, and warn the
user - without submitting the data - if the location isn't accurate
enough.

The code is below.

I've been trying the app outside and find that the accuracy is often
32m, 64m or even higher, even after 20 or 30 seconds. This is in
central London, in full view of the sky, on a clear day! I need it to
be below 10m.

At the same time, if I open the Maps application while standing in the
same spot, it shows my GPS location as a blue spot on the map -
suggesting the listener in Maps has perfect accuracy.

So what is the problem? Have I implemented the listener/check in the
wrong way (which feels like the likely explanation), or is it that GPS
in Android isn't good enough to write mapping applications? Does
anyone else have experience of this?

Best,
Anna

--

//cut-down version of code

public class GPSTest extends Activity {

/** Called when the activity is first created. */
private static final String LOG_TAG = "GPSTest";

private Double latitude = 0.0;
private Double longitude = 0.0;
private String latString = "";
private String longString = "";

//Location items
LocationManager locationmanager;
LocationListener listener;
Location location;
private float gpsAccuracy;
private long locationTime;
private long currentTime;
private long timeDifference;

//Textview and button
private TextView tvErrorMessage;
private View submitButton;

private String responseString;

private ProgressDialog pd;
final Handler mHandler = new Handler();
final Runnable mUpdateResults = new Runnable() {
public void run() {
pd.dismiss();
updateResultsInUi();
}
};

private static int globalStatus = 0;
private static final int GPS_NOT_FOUND = 1;
private static final int GPS_OK = 2;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(LOG_TAG, "onCreate");
setContentView(R.layout.main);

// Set up the button listeners
findViews();
setListeners();

// Register with GPS, throw an error if there's a failure
if (!testProviders()) {
tvErrorMessage
.setText("Can't get location - check 
that GPS is turned on in
Settings");
}
}

@Override
public void onRestart() {
super.onRestart();
Log.d(LOG_TAG, "onRestart");
// Register with GPS, throw an error if there's a failure
if (!testProviders()) {
tvErrorMessage
.setText("Can't get location - check 
that GPS is turned on in
Settings");
}
}

//
**
// findViews/setListeners: set up the button listeners
//
**

private void findViews() {
Log.d(LOG_TAG, "findViews");
submitButton = (Button) findViewById(R.id.submit_button);
tvErrorMessage = (TextView) findViewById(R.id.tv_error);

}

private void setListeners() {
Log.d(LOG_TAG, "setListeners");
submitButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
uploadToServer();
}
}
});
}


//
**
// testProviders: Register for location updates, warn if not found
//
**
public boolean testProviders() {
Log.d(LOG_TAG, "testProviders");
String location_context = Context.LOCATION_SERVICE;
locationmanager = (LocationManager) getSystemService
(location_context);
listener = new LocationListener() {
public void onLocationChanged(Location location) {
}

public void onProviderDisabled(String provider) {
}

  

[android-developers] GPS LocationManager Problem

2009-02-17 Thread sohail khan
I am developing an application that uses the GPS functionality. I am getting
a null pointer exception at the code below:

Location l = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);

The java docs for the getLastKnownLocation states that: " if the provider is
disabled, null is returned.

I am getting null for the value of "l".

I have also send the GPS coordinates using the DDMS tool and have assigned
the permissions for using GPS "ACCESS_FINE_LOCATION".

What does it means by "disabled provider" and how to handle this error.


Thank you in advance.

-- sohail

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



[android-developers] Gps Signal Strength

2010-05-05 Thread Tommy
Is there a way to return the GPS signal Strength? Thank you for your
input

Tommy

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS accuracy reliability

2010-07-09 Thread jgostylo
This is a general question about GPS accuracy reporting based on
feedback from my user community.

My app has an issue where many players get bounced all over kingdom
come when using GPS to get a signal.  I had this issue with my G1 on
occasion but not on my Nexus One.  I am talking hundreds of miles from
their real location.  I changed the code to throw out anything that
was not at least 500 meters accurate.  My question is, if the location
placement is hundreds of miles off, how reliable will the accuracy
reporting be?  Does it realize that it could be hundreds of miles off?

I am asking the community because I cannot reproduce the scenario with
what I currently have so I can't test if my fix is meaningful.  Does
GPS know when its readings are that far off?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] gps icon disappears

2010-07-22 Thread ecforu
I am using the GPS and something I do in my program causes the GPS icon in
the notification area of my phone to disappear for a few seconds then come
back, then disappear again.  None of the other GPS programs I use have this
"problem"... if it is actually a problem.  I've read all kinds
of articles about the GPS icon staying on after the program exits, but I
can't find anything about it disappearing while the application is using it.


What causes the GPS icon to disappear?

Thanks

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps problem

2010-12-28 Thread Hari KJ
Vivek,

I'm trying out all possible places to find a solution for my issue. So
excuse me for contacting you directly.

I'm literally stuck on trying to stream a aac+ stream for a new Radio app
for my client.

A sample url is http://2943.live.streamtheworld.com:80/KTUXFMAACCMP3

I'm tried using the normal way of listening to the OnPreparedListener and
then playing it. But as expected it throws a PVMFErrCorrupt error.

I then tried using the StreamProxy and PlayBackService Classes from the
npr-news source in googlecodes in which a proxy is used to stream.

In that I'm getting a SocketException: Broken Pipe.

I'm at loss at how to move forward.

Can you please help me.

Regards,
Hari

On Tue, Dec 28, 2010 at 8:00 PM, vivek  wrote:

> i am using android 2.0 emulator.
> by using the geo fix command i am able to fix my geo location and it
> is being picked up by the google maps too (on emulator). I want to
> know where is the current geo location (supplied in geo command)
> stored in emulator and can i retrieve it using adb shell ? If yes then
> how
>
> thanks and happy new year
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS & NET Position

2010-11-03 Thread MarcoCanali
Ok .. i Understand the Main location Function of Android but i want
implementing a complete function for Device Positioning
estimate with the event showed in Figure 1 of Android Dev
Documentation :
http://developer.android.com/guide/topics/location/obtaining-user-loc...
:
1_Application Start  2_Listen for GPS and Net Update ecc
with Testing on Emulator is so hard because i don't receive network's
Localization parameter and the same for GPS( from shell GPS signal
haven't delay and accuracy ecc ).
Someone has already stand up to this Problem, and have an algorithm
to
do this  ??

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS & NET Position

2010-11-03 Thread MarcoCanali
Ok .. i Understand the Main location Function of Android but i want
implementing a complete function for Device Positioning
estimate with the event showed in Figure 1 of Android Dev
Documentation :
http://developer.android.com/guide/topics/location/obtaining-user-loc...
:
1_Application Start  2_Listen for GPS and Net Update ecc
with Testing on Emulator is so hard because i don't receive network's
Localization parameter and the same for GPS( from shell GPS signal
haven't delay and accuracy ecc ).
Someone has already stand up to this Problem, and have an algorithm
to
do this  ??

 ?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Position realtime

2010-11-24 Thread Julien
Hello
I would like to put the same blue arrow icon that is in Google Map on
android displaying the  current position. Is there anything provided
with the google map API to display it over a google map ? (display in
real time our position AND direction)
I cannot find anything on the internet ..

thanks for some help!

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] gps and wifi

2010-09-22 Thread student
Dear Android Developers,

  In location we have 2 way
1.gps
2. network

in above 2 of them are treated the seperate thread as thread1 and
thread2

in that if user inside the room gps not shown the latitude and
longitude so it should be activated the network side as thread2
then if user moved out it will be activated both gps and network.
my problem is if user came back to room it should be indicated the
network by comparing the frequency or  speed with gps?
how to do that comparision? what method we have to use in it?


Waiting for ur reply

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] GPS Toggle

2010-10-24 Thread Frank Weiss
I use these to toggle location updates:


locationManager.requestLocationUpdates(provider, min, distance, *this*);

locationManager.removeUpdates(*this*);

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all,

When using locationManager.requestLocationUpdates(provider, 3,1,
locationListener);,,,it doesn't consider the time in consideration,,just it
updates the location when I change the coordinates from the DDMS ,

What should I do just to make the updates periodically based on the time
I specify

-- 
tarek

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all,

When using locationManager.requestLocationUpdates(provider, 3,1,
locationListener);,,,it doesn't consider the time in
consideration,,just it updates the location when I change the
coordinates from the DDMS ,
What should I do just to make the updates periodically based on the
time I specify

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all,

When using locationManager.requestLocationUpdates(provider,
3,1,locationListener);,,,it doesn't consider the time in
consideration,,just it updates the location when I change the
coordinates from the DDMS , What should I do just to make the updates
periodically based on the time I specify

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Min Time

2010-06-06 Thread tarek attia
Hi all,

When using locationManager.requestLocationUpdates(provider,
3,1,locationListener);,,,it doesn't consider the time in
consideration,,just it updates the location when I change the
coordinates from the DDMS , What should I do just to make the updates
periodically based on the time I specify

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Min Time

2010-06-06 Thread tarek.attia
Hi all,

When using locationManager.requestLocationUpdates(provider,
3,1,locationListener);,,,it doesn't consider the time in
consideration,,just it updates the location when I change the
coordinates from the DDMS , What should I do just to make the updates
periodically based on the time I specify

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Navigator (extensions)

2011-05-23 Thread Ricardo Longa
Hello!

I can create extensions to the "GPS Navigator" native app for Android?

For example, I want to enable people to find (and diverting) of streets that
are locked (under construction), creating an icon "Street interdicted"
exactly on the site.

I would not have to create an implementation of maps or GPS, I would like to
reuse what already exists ...

I am Brazilian and I used Google Translate. =)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS without gps signal

2010-03-18 Thread David Toledo
Hi All
Is possible that can using the signal GPS without signal the telephony
active. I need save the gps location in the sqllite when the telephony is
disabled

Thanks
David

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Queueing in LocationListener

2010-03-22 Thread JFrog
  The application under development was to distinguish between the
current location of the android phone based upon GPS signal when it
was available.  When it is not available, alternate methods are being
used to distinguish the user's location.

  The application uses a private locationlistener class that
implements the LocationListener class.  The code within the
onLocationChanged( ) method to be overridden will draw the location on
the google map as a dot as they are received.

  I have noticed however that something is amiss.  If you start
outside the building, it will estimate your position with several dots
around your current location. When you walk through a building where
you don't get GPS, the dots are not drawn as expected, but as soon as
you step outside again on the other side of the building it rapidly
draws dots far away from (but leading up to) your location, until it
gets to your actual current location.  I don't understand how these
other values are retrieved and why they seem to poke their ugly heads
in, once the user steps back outside.

  It almost seems as though it queues up an estimated route travelled
based on the previous gps location and tries to connect them with
several updates.  I'm trying to understand the reasoning behind why it
would do this, rather than just provide me with actual GPS signals
received when they are available.

  Any have any thoughts or notice of these values building up like
this?

~ JFrog "Debugging something is twice as hard as coding it up the
first time.  Therefore, if we code something up as cleverly as
possible, we are by definition not smart enough to debug it"

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] GPS failing with SecurityException

2009-11-13 Thread Arun
I use Android 1.5 on HTC Hero. I've a mapapp that needs GPS
functionality. Sometimes when I start up the application I get the
following error.
11-13 17:49:50.709: ERROR/AndroidRuntime(1585):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{test.android.mapapp/test.android.mapapp.MapsActivity}:
java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission

Code at that point is:
LocationManager lm = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);

//Send current location messages to the listener every second.
MyLocationListener listener = new MytLocationListener();
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000,
1, listener);


MyLocationListener implements LocationListener.

In the manifest file, I've selected both fine and coarse as follows:
 



I check that "Enable GPS sateliites" setting is checked.
One more piece of information. Whenever I get the error, I reinstall
the application, it works ok.

Google Maps works fine. What is wrong with my code?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS on Droid issues

2009-11-16 Thread Robert
When I run the following code on a HTC G1, I get the behavior that I
am expecting.

myLocationManager.requestLocationUpdates("gps", 6, 10,
this);

It will grab a GPS location for me, and then sleep until it needs to
send me an update. On the Droid though, the GPS stays on the entire
time without sleeping feeding me an update every minute. This is
killing the battery when my application is running, I need it to sleep
just like it does on the G1 to conserve.

Anyone have any thoughts/ideas?

Robert

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS location and geopoint

2009-09-08 Thread sweet

Hello i would like to display a geopoint in a mapview with the
location of the device with gps coordonates.
I already have a code for display geopoint and i would like to fit it
for display this location:

drawable = this.getResources().getDrawable(R.drawable.geopoint);
itemizedOverlay = new NewItemizedOverlay(drawable);

GeoPoint point = new GeoPoint(45569159,5928268);
OverlayItem overlayitem = new OverlayItem(point, "", "");
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add( itemizedOverlay );

If anyone can help me
Thanks
Sweet
--~--~-~--~~~---~--~~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] GPS co-ordiantes zero

2010-01-26 Thread monty
Could ny1 plz tell y i get GPS locations as zero values in device but
works fine in emulator.any solution?it wuld b helpful

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Gps sorting question

2010-02-05 Thread Frank Weiss
It's that simple unless you want to account for latitude compression or
obstacles. Latitude compression is usually negligible if the latitude bounds
are small (<0.2 degrees), otherwise use great circle computation, which
involves more calculation. Most nearness calculations are done "as the bird
flies", but such calculations are not true if the path is limited to
roadways or land, such as for cars, walking, or crossing rivers via bridges.

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Gps sorting question

2010-02-06 Thread Jiri
Ok, so if I use plain simple trigonometry there is some inaccuracy. I 
can live with that.


Thank you Frank

Frank Weiss wrote:
It's that simple unless you want to account for latitude compression or 
obstacles. Latitude compression is usually negligible if the latitude 
bounds are small (<0.2 degrees), otherwise use great circle computation, 
which involves more calculation. Most nearness calculations are done "as 
the bird flies", but such calculations are not true if the path is 
limited to roadways or land, such as for cars, walking, or crossing 
rivers via bridges.


--
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS beacon vs. locked

2009-12-11 Thread stanlick
I am trying to determine whether satellites are being acquired or if a
lock has been acquired.  I can see this with a pulsing vs. fixed dish
icon on the notification bar, but so far I have not quite achieved a
solution in code.

Apparently this does nor necessarily mean LOCK_ACQUIRED?

@Override
public void onGpsStatusChanged(int event) {
if (GpsStatus.GPS_EVENT_STARTED == event) {
//1
setGpsAvailable(true);
}

}

Peace,
Scott

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS on G1/G2

2009-07-18 Thread olko

I am wondering if an application that uses GPS and was developed and
tested on the emulator and G1 will work on G2?

I have got a comment from a G2 user that GPS did not work..
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



Re: [android-developers] GPS Fix Status

2012-03-29 Thread Alger Lin
I release a tool to dumping all classes (includes disclosed and 
undocumented) at device,  maybe this tool can help you to check if 
undocumented API was available at target Android version. 

You can get it by URL below.
https://play.google.com/store/apps/details?id=com.twrd.yulin.classminer 

Kristopher Micinski於 2012年1月6日星期五UTC+8上午9時13分33秒寫道:
>
>
> http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver
>
> Maybe it's stupid to point you at that, because you've probably already 
> seen it?
>
> If nobody has a good answer for this (I suspect somebody does, though
> I don't know) it probably wouldn't too hard to dig through the system
> and see how it's happening (the blinking / solid thing).
>
> It looks like this isn't a standard intent.  It isn't documented, it
> looks like it's declared as GPS_FIX_CHANGE_ACTION, but using
> undocumented API features is a "bad idea."
>
> Kris
>
> P.s., off the top of my head, would it be possible to register a
> passive listener, and listen for locations from that?
>
>

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS information with logcat

2011-12-20 Thread
Hello,

I’m trying to see if the assistance data is injected into the GPS by
examining the logcat but I’m not able to know where the problem is. As
I can see in logcat messages, Android fist tries to connect with the
SUPL server but it fails, whereas the NTP time injection is well done.
Finally, a xtra data download request is done (my devices has a
Qualcomm chip) but there is no message to see whether it is well done
or not.

Logcat messages:

// SUPL A-GPS
D/GpsLocationProvider(   96): set_capabilities_callback: 7 D/
lib_locapi(   96): loc_eng_init called, client id = 0 D/
lib_locapi(   96): loc_eng_set_default_agps_server, type = 1, hostname
= supl.google.com, port = 7276 D/lib_locapi(   96):
loc_eng_process_deferred_action started D/lib_locapi(   96): Setting
GPS privacy lock to RPC_LOC_LOCK_NONE D/lib_locapi(   96):
loc_eng_set_gps_lock mode, client = 0, lock_type = 1
D/lib_locapi(   96): loc_eng_set_gps_lock mode failed

// NTP
D/GpsLocationProvider(   96): NTP server returned: 1306739478749 (Mon
May 30 09:11:18 GMT+02:00 2011) reference: 38652 certainty: 73 system
time offset: 12419 D/lib_locapi(   96): loc_eng_inject_time,
uncertainty = 73

// XTRA DATA Qualcomm
D/lib_locapi(   96): loc_event_cb: xtra download requst

Is there any way to get more information related with the GPS
behavior?

I have made another simple test with other device (same model but
early android version and different applications running) and I am
able to see more information related with the xtra data injection:

D 96/GpsLocationProvider: calling native_inject_xtra_data
D 96/GpsLocationProvider: Acquiring wakelock
D 96/libgps: qct_gps_inject_xtra_data length: 39635 parts: 100

I do not understand the reason why the logcat is different and has
more information, any idea?

Any help will be appreciated

Thank you

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] GPS Fix Status

2012-01-05 Thread Kristopher Micinski
http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver

Maybe it's stupid to point you at that, because you've probably already seen it?

If nobody has a good answer for this (I suspect somebody does, though
I don't know) it probably wouldn't too hard to dig through the system
and see how it's happening (the blinking / solid thing).

It looks like this isn't a standard intent.  It isn't documented, it
looks like it's declared as GPS_FIX_CHANGE_ACTION, but using
undocumented API features is a "bad idea."

Kris

P.s., off the top of my head, would it be possible to register a
passive listener, and listen for locations from that?

On Thu, Jan 5, 2012 at 6:31 PM, gotok  wrote:
> I am trying to detect when a GPS fix is made (i.e. when the gps icon
> changes from blinking to solid) and when it is lost (i.e. when the gps
> icon changes from solid to blinking). The system obviously knows when
> these changes occur. I have tried using a broadcast receiver to catch
> the intent:
>
>    IntentFilter filter = new
> IntentFilter("android.location.GPS_FIX_CHANGE");
>
> But I have not been able to get it to work. The intent seems to get
> fired on GPS fix changes, but I
> don't know how to determine if the intent means that the fix is good
> or bad or something else. Is
> this a legitimate intent (I found from a web search) for this purpose?
> If not, what is the best way of detecting GPS Fix changes?
>
> thanks...
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] GPS Fix Status

2012-01-05 Thread James Black
On the network provider you will implement onstatuschange and then you can
detect.

You can look at
http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver
On Jan 5, 2012 6:32 PM, "gotok"  wrote:

> I am trying to detect when a GPS fix is made (i.e. when the gps icon
> changes from blinking to solid) and when it is lost (i.e. when the gps
> icon changes from solid to blinking). The system obviously knows when
> these changes occur. I have tried using a broadcast receiver to catch
> the intent:
>
>IntentFilter filter = new
> IntentFilter("android.location.GPS_FIX_CHANGE");
>
> But I have not been able to get it to work. The intent seems to get
> fired on GPS fix changes, but I
> don't know how to determine if the intent means that the fix is good
> or bad or something else. Is
> this a legitimate intent (I found from a web search) for this purpose?
> If not, what is the best way of detecting GPS Fix changes?
>
> thanks...
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS multipath errors filtering?

2012-01-26 Thread Dmitry Zhadan
Hello!

I'm develop an application which uses GPS to periodically determine
user location. The problem is that when the user is stationary, the
successive locations comes with a large "jumps" in latitude and
longitude (up to 100 meters).
Is there any way to filter out these "jumps" (also known as "GPS
multipath errors")?
For obtaining locations, I'm use requestLocationUpdates(...) with 0.0
minDistance parameter and interval (minTime) between 30 and 90 s
(depending on network availability for sending locations and battery
state).

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS - SMS - Mock Location

2012-02-07 Thread Hohorlan B
I have this code for my project. (Not mine, but I revised it so it
will suit my needs.)

http://pastebin.com/Tn4guLNR

My Project is about a specific GPS hardware that will send GPS
position to the Android Phone. The phone will have to display the
location via Offline maps like mapdroyd. This program, when the button
is clicked, it will display the offline map. The gps mock location
will then be turned on. So the map will display the Mocked location
from SMS.

However, my program keeps on Showing Force close. Can someone help me
for this?

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Updates in Background

2012-07-16 Thread Nav
Hi, I'm working on the Android app that would be used in some kind of 
"Street game". I'm supposed to create app that should show new tasks for 
the user when he reaches specific location, e.g. he would be of about 15 
meters to the given building at X street. What is the best option to make 
such app with the least battery consuming? Should I create an IntentService 
that in the onHandleIntent would request location updates and inform if the 
device is in the neighbourhood of the given spot?

Thx for your advice :)

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS in android application

2012-07-23 Thread Susanne
Hi,
 
I am porting my windows-mobile GIS application to android (samsung galaxy 
SII). 
Now I want to use external GPS (wintec WBT-202) to get geographical 
location.
 
How can I force my application to take position from external gps and not 
from internal?
I already did connect mobile-phone to gps via bluetooth and did set 
"android.permission.BLUETOOTH_ADMIN".
Which listener shall I take: GpsListener or NmeaListener?
Is there anything else to consider or does somebody have test source code 
specifying this topic?
 
thanks you a lot for any hint,
Susanne
 
 

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS library android 2.3.3

2011-11-22 Thread my-mailbo...@yandex.ru
Hello!

I am trying to get android gps system working. I have a gps module
which output NMEA format data. It is connected to my devboard through
USB and I use standard ftdi driver. It creates /dev/ttyUSB0 interface.
Output speed of gps data is 4800, I change to it with busybox stty -F /
dev/ttyUSB0 4800 from 115200. I downloaded freerunner nmea gps parser
that implements gps.h. Then i put the source file (fr_gps.c) of parser
to

$android/src/hardware/mx5x/libgps/

directory with Android.mk file

LOCAL_PATH := $(call my-dir)
ifneq ($(TARGET_PRODUCT),sim)
# HAL module implemenation, not prelinked and stored in
# hw/..so
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
LOCAL_SRC_FILES := gps_freerunner.c
#LOCAL_SRC_FILES += gps.c
LOCAL_MODULE := gps.default
LOCAL_MODULE_TAGS := eng
include $(BUILD_SHARED_LIBRARY)
   # endif
endif

after compilation i put gps.default.so to

/system/lib/hw

directory and reboot my android. But any map application shows "GPS
disabled couldnt get location".
I didnt set BOARD_GPS_LIBRARIES in BoardConfig.mk. greping all files
in source tree I didnt find any file that using it. In source file of
parser I see LOGD messages but logcat didnt show anything. Could
anybody put me on right way, give some advices? googling through web
gives me fractional information about this.

Thanks!

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Gps Location Path

2011-09-20 Thread TreKing
On Tue, Sep 20, 2011 at 8:00 PM, nageswara rao rajana  wrote:

> I want to develop an application with google map, on which i need to show
> the path i am travelling.
> Anyone please provide me sample code.
>

No one is doing you work for you. What have you tried?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] GPS locations distance

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 5:17 AM, nageswara rao rajana  wrote:

>  I tried this but "Force close exception raising"


Did you try debugging your app?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] GPS Power Consumption Questions

2008-09-24 Thread Jeff Kao
Our app uses the LocationManager to request ongoing updates from the onboard
GPS service.  GPS is notoriously power-hungry, and I'd love to gain some
insight from Google Engineers on how to best use GPS in our app to prevent
too much battery waste in usage on the actual G1 device.

Can a Google Engineer comment on:

a) How much difference it makes (if any) to power consumption whether the
minimum time between GPS update requests (i.e. 1 sec between updates vs. 20
secs between updates) is short or long?  Will that make a difference to an
application running for example, over a few hours?  Or is the power
consumption the same as long as the relevant LocationProvider is enabled?

b) How you can actually "turn off" the GPS, in terms of its power
consumption.  Will a call to to removeUpdates() or removeProximityAlerts()
be enough, or must the relevant LocationProvider be disabled (ie through
System.Settings)?

Thanks!

Jeff

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] GPS LocationProvider journey simulation

2008-08-19 Thread marcel-182

Hello,

after migrating my application from m5 to the new 0.9 SDK I don't get
any location updates for the GPS LocationProvider.

The documentation (http://code.google.com/android/toolbox/apis/
lbs.html) says:
"Note: By default, the LocationManager currently provides a single
LocationProvider called "gps" that simulates a journey between two
locations in the San Francisco Bay Area."

What I have done:
1. Added  to the
AndroidManifest.xml (and of course deleted the old permissions)
2. Implemented a LocationListener
3. Replaced the old request method and Intent / IntentReceiver stuff
with this:
mLocationManager.requestLocationUpdates(
Constants.LOCATION_PROVIDER, // Has the value of
LocationProvider.GPS_PROVIDER
Constants.LOCATION_UPDATE_MIN_TIME_MILLISECONDS, // 3000
Constants.LOCATION_UPDATE_MIN_DISTANCE_METERS, // 10
mLocationListener); // Which is the LocationListener I implemented

Looks quite accurate but LocationListener.onLocationChanged(Location)
isn't called :-(. Any ideas?


Regards, marcel-182

--~--~-~--~~~---~--~~
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 Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] GPS seems flaky today

2010-08-21 Thread Brad Gies


Anyone else having problems with Google Maps or GPS in their apps today, 
specifically with "My Location" enabled?


My map keeps showing me as if I'm in Northern Montana, then it changes 
back to showing me where I really am (about 1,500 miles away). It seems 
to change every half an hour or so.


I don't know yet if my GPS is having problems or if it's something in 
Maps, but the little blue flashing dot disappears and then if I animate 
to center the map on my location, it goes to either here or Montana, and 
the blue dot is there. My phone is the original T-Mobile G1.. so it's 
getting a little old... but I didn't expect senility quite yet :).




Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS Road Network Developer

2010-09-07 Thread benclark
I know Waze exists already but in all honesty it's far from good,
often having roads that don't exist, not tracking very well, and
extremely difficult to edit roads that you've recorded afterwards.
What I am wondering is, how easy would it be to create an app that
follows me whenever I'm driving recording the road as I go, and
assuming I drive the same road again it refines the original road by
combining the gps tracks rather than creating a new one (as Waze seems
to like doing). This is something I would love to create but I don't
know if I have the technical know-how to do. Any help or suggestions
would be great!

Thanks, Ben

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] GPS with Map overlay

2011-02-11 Thread Poifull
Hi, I have got the following code but my application crash. Can anyone
tell me what is wrong? Thanks!

public class GPS extends MapActivity{

private MapController mapController;
private MapView mapView;
private LocationManager locationManager;
GeoPoint p;
int lat,lng;

 class MapOverlay extends com.google.android.maps.Overlay
{
@Override
public boolean draw(Canvas canvas, MapView mapView,
boolean shadow, long when)
{
super.draw(canvas, mapView, shadow);

//---translate the GeoPoint to screen pixels---
Point screenPts = new Point();
mapView.getProjection().toPixels(p, screenPts);

//---add the marker---
Bitmap bmp = BitmapFactory.decodeResource(
getResources(), R.drawable.pin);
canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50,
null);
return true;
}
}


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.gps);

 // create a map view
RelativeLayout linearLayout = (RelativeLayout)
findViewById(R.id.mainlayout);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
mapView.setStreetView(true);
mapController = mapView.getController();
mapController.setZoom(14); // Zoon 1 is world view
locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
0,
0, new GeoUpdateHandler());


//---Add a location marker---
MapOverlay mapOverlay = new MapOverlay();
List listOfOverlays = mapView.getOverlays();
listOfOverlays.clear();
listOfOverlays.add(mapOverlay);

mapView.invalidate();
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
public class GeoUpdateHandler implements LocationListener {

@Override
public void onLocationChanged(Location location) {
lat = (int) (location.getLatitude() * 1E6);
int lng = (int) (location.getLongitude() * 1E6);
GeoPoint point = new GeoPoint(lat, lng);
mapController.animateTo(point); //  
mapController.setCenter(point);
}

@Override
public void onProviderDisabled(String provider) {
}

@Override
public void onProviderEnabled(String provider) {
}

@Override
public void onStatusChanged(String provider, int status, Bundle
extras) {
}
}

}

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] gps icon disappears

2010-07-22 Thread TreKing
On Thu, Jul 22, 2010 at 3:48 PM, ecforu  wrote:

> What causes the GPS icon to disappear?


AFAIK, not using the GPS. This could be either there are no more registered
location listeners using the GPS, or the ones that are registered have a
time or distance limitation in which they turn off to conserve battery.

My guess is you specified a time or distance restriction when registering a
listener and it's turning on and off based on that.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps icon disappears

2010-07-22 Thread ecforu
Here is how I enabled my listener.  Is it the 15000 or 2 that turns it off
to conserve battery?  I thought it said not to use anything under 6.
 But if that shuts off the GPS for a minute why don't i see that with other
GPS applications?  Do people put 0 in this field (or some other small
number)?

  locMgr.addGpsStatusListener(this);
  locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 15000,
2, this);

thanks for the info



On Thu, Jul 22, 2010 at 5:01 PM, TreKing  wrote:

> On Thu, Jul 22, 2010 at 3:48 PM, ecforu  wrote:
>
>> What causes the GPS icon to disappear?
>
>
> AFAIK, not using the GPS. This could be either there are no more registered
> location listeners using the GPS, or the ones that are registered have a
> time or distance limitation in which they turn off to conserve battery.
>
> My guess is you specified a time or distance restriction when registering a
> listener and it's turning on and off based on that.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] gps icon disappears

2010-07-22 Thread TreKing
On Thu, Jul 22, 2010 at 4:11 PM, ecforu  wrote:

> Is it the 15000 or 2 that turns it off to conserve battery?
>

The 15000. AFAIK, the 2 just means that the GPS will be checked, but the
listener won't be triggered unless the distance has moved at least 2 meters.
The 15000 means the the GPS won't be checked at all for at least 15 seconds.


> I thought it said not to use anything under 6.
>

That's a suggestion. You should set whatever is appropriate for your app.


> But if that shuts off the GPS for a minute why don't i see that with other
> GPS applications?  Do people put 0 in this field (or some other small
> number)?
>

Basically. Google Maps Navigation, for example, would not be very useful
with a full minute delay between updates, now would it?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >