Closed GoogleCodeExporter closed 9 years ago
User wants to keep GPS active while connected to Bluetooth or in car mode.
Original comment by JimR...@gmail.com
on 23 Mar 2012 at 11:00
I would like to better understand the use cases for this so I can implement the
most useful solution. I can start a GPS listener. It will inform A2DP Volume
when a new GPS location is captured. However, other apps would have to be
listening for passive locations to get updates I think. I can also request
updates at a certain rate. What rate should that be? Read this topic for more
info:
http://developer.android.com/guide/topics/location/index.html
and
http://developer.android.com/guide/topics/location/obtaining-user-location.html
When requesting locations updates, the first parameter in
requestLocationUpdates() is the type of location provider to use (in this case,
the Network Location Provider for cell tower and Wi-Fi based location). You can
control the frequency at which your listener receives updates with the second
and third parameter—the second is the minimum time interval between
notifications and the third is the minimum change in distance between
notifications—setting both to zero requests location notifications as
frequently as possible. The last parameter is your LocationListener, which
receives callbacks for location updates.
Do any of these need to be configurable? If so, what? It all depends on how
you want to use the information. I need to better understand how this feature
will be used. It is so that your Google maps Latitude location is more
up-to-date? It is to keep good location data so A2DP Volume can capture a
better car location when you stop? Is there some other reason to keep GPS
active? Is it just GPS or should we be listenign for all location data?
Original comment by JimR...@gmail.com
on 27 Mar 2012 at 2:37
That I want to say, it more simple.
When I'm at hoem or at work, my GPS phone is off.
When I go away, I take my car.
A2DP active my profil, launch waze (my gps application) but my GPS phone will
be off.
I juste want A2DP active my GPS phone.
Off course, I don"t want this activation in all profils. when I connected my
headphone at home I don't want GPS.
I juste want a checkbox in device profil, to activate or not, the GPS phone.
Is it possible ?
Jeff
Original comment by jfleost....@gmail.com
on 1 Apr 2012 at 7:08
OK, so I think you are wanting this:
Enable GPS when device connects. Enable means that GPS is ready when an app
tries to use it. Some people disable GPS normally to conserve battery
(although just enabling it has little impact on battery life). Then when a
device disconnects, return GPS back to original (see what it was prior to
connect and then return it back to that after disconnect). I presume this
would leave GPS enabled long enough for A2DP Volume to capture a location
before disabling.
If that is correct, I understand the use case now and can begin development. I
will create another configuration by device. It will say "enable GPS while
connected". When checked in the edit device screen, this will enable the GPS
when the device connects. When the device disconnects, it will wait until the
location capture has completed or times out and then it will return the GPS
enable state back to what it was prior to the device connecting.
Original comment by JimR...@gmail.com
on 2 Apr 2012 at 2:34
That is ok. :-)
Le 2 avr. 2012 04:35, <a2dpvolume@googlecode.com> a �crit :
Original comment by jfleost....@gmail.com
on 2 Apr 2012 at 6:55
Implemented in 2.6.0 for testing. I am still waiting for translations for this
and issue 97 but I will post a test release of 2.6.0. Once I get translations
I will make an official 2.7.0 release which will include the new power
connection device and this feature. Please test. You can download the test
version from the downloads section of this website.
Original comment by JimR...@gmail.com
on 5 Apr 2012 at 1:59
This issue was closed by revision a0007e0bdd24.
Original comment by JimR...@gmail.com
on 6 Apr 2012 at 2:20
Original issue reported on code.google.com by
jfleost....@gmail.com
on 22 Mar 2012 at 11:36