What's the trick to making ProximityAlerts work?

by Faber Fedor » Sun, 08 Mar 2009 08:46:51 GMT


Sponsored Links
 ProximityRadius *is* big.  I think I was using 1500 meters in the field test
today.  The "10 feet" I mentioned below was the minimum distance to travel
before doing an location update. And I mean "10 meters".

I beginning to think my mental model is all wrong.  I thought I could
blindly throw intents out to the Android and it would fire off PAs back at
me.  Which intent belonged to which latlong was my problem to figure out.
I'm now thinking I need to keep each PA intent in a global data
structure^W^W^Winstance variable and carry them around with me and run an
RequestUpdate on each one. :-?

Is there someway for me to monitor myLocationManager to see when he fires
off a PA?







-- 

Faber Fedor
Linux New Jersey
 http://linuxnj.com 
faberfedor.blogspot.com

--~--~---------~--~----~------------~-------~--~----~



What's the trick to making ProximityAlerts work?

by Mark Murphy » Sun, 08 Mar 2009 09:17:41 GMT


 


Ah, sorry. FWIW, requestLocationUpdates() and addProximityAlert() should
be orthogonal -- the settings you supply requestLocationUpdates() should
not impact the behavior of addProximityAlert().


PAs? I'm guessing you mean proximity alerts, not Pennsylvanias or
precious armadillos or something.


I don't think so, by design. LocationManager is a system service; your
app does not even need to be running to get a proximity alert.

The first edition of my Android book had a sample app that used
proximity alerts. I dumped that sample app (after having to re-re-write
it due to the constantly-changing location API) and now my book does not
have a proximity alert sample. I'll see if I can work that into _Android
Programming Tutorials_, though.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android Training in Sweden --  http://www.sotrium.com/training.php 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


What's the trick to making ProximityAlerts work?

by Faber Fedor » Sun, 08 Mar 2009 09:27:07 GMT


 




I think there's still some connection between the two that I'm missing.




I noticed. :-)

The only example I've come across is WhereAmI.java which is based on a
previous SDK. I'm trying to glean the solution from that.

 For a "killer feature" of Android, there isn't much discussion or many
examples out there.




Another book?

-- 

Faber Fedor
Linux New Jersey
 http://linuxnj.com 
faberfedor.blogspot.com

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Disappointed by poor maps quality of Google Maps

Hi Adrian,

GMaps for Android uses the same underlying map data as the web app
(maps.google.com), so problems with that data should be reported/fixed
the same way. Here's a URL to get you started:
http://maps.google.com/support/bin/answer.py?answer=98014

String




--

2. sharing: between android & iPhone

well, to be honest, gue wiken kemaren, iseng pindah ke iPhone *emang dari
awal udah punya*
and what you know...this is a love & hate relationship between the 2.

iPhone:

- i love the screen keyboard, lebih responsif jauh daripada android
- game wise *ya iyah lah* walau gue ga doyan game
- apps wise, yeap, some of the apps can't be found on android

android:

- connection wise, i LOVE it, with the same card, same place, somehow emang
android mampu untuk jauh lebih mengoptimalisasi jaringan yg 'butut'
sekalipun. di iPhone, bused, same card, same jaringan, same connection, asli
koneksi jadi bego ga bisa konek sama sekali.
- apps running di background, LOVE it. *iye, iPhone gue ini non JB*
- keyboard, rada SLOW untuk totol2....somehow :(


gitu aja deh. soal batere sih, i HATE both. benci benci benci....boncos
banged.

gitu aja deh for now curcolnya.
makasih :)

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. SDK and Linux 64 bit

4. Obtaining video frames for processing

5. Quotes from le "Cafe du coin" on your Android powered phone!

6. blending layers of Bitmaps

7. Problem with creating SMS folder and copying messages to that folder