Good news...
I have a new demo project and it is successfully detecting me entering and exiting a Geofence. In fact i set a 20 metre geofence around my home and strolled up and down the road a few times, my S3 detected me entering and leaving the geofence 3 or 4 times.
I have all GPS stuff enabled on my S3 - hardware GPS and network location etc.
I've removed the code and library from my last post and attached all new files to this post.
And i'll leave everyone that's following this thread to take a look and post their results, comments and any requests.
The geofencing aspect of the new location apis seems pretty vague and not thoroughly documented, here's another article i found while debugging my previous problem with the geofencing:
how to use android geofencing api? | BlogoSfera.
The main confusion is what location provider(s) does geofencing actually use?
Does it use only wifi? wifi and 3G?
Does it ever use hardware GPS?
So far i have found these questiones asked again and again with not a single real (authorative) answer.
So give the latest project a try, use the Settings option to enable/disable LocationRequest and/or Geofence and set LocationRequest parameters and
enjoy an evening stroll!
(You'll have to hardcode a Geofence location and radius in the LocationManager service at line ~107).
Be sure to connect your device to your computer and take a look at the log when you return, recent logs should still display and you should see everything happening.
If you all report that it is generally working as expected i'll move on to activity detection next and we should see the library complete and ready for use by next week.
If you make any reports please include details of the device being used and which location providers you have enabled in your device settings.
Martin.