A demo for how to use the new location api provided by android, include sample code for Fused location, Geofencing and Activity recognition..
android_location_demo is hosted in the following web site
https://github.com/chenjishi/android_location_demo
If you think the Android project android_location_demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of android_location_demo.
Item | Value |
---|---|
Java File Count | 6 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 17 |
Minimum SDK Version | 8 |
Activity Count | 2 |
jar files used | android-support-v4.jar google-play-services.jar |
Required Permissions | android.permission.ACCESS_FINE_LOCATION android.permission.INTERNET com.google.android.gms.permission.ACTIVITY_RECOGNITION |
There are 21 image files in android_location_demo. The names of the image files are listed as follows.
common_signin_btn_icon_disabled_dark.9.png common_signin_btn_icon_disabled_focus_dark.9.png common_signin_btn_icon_disabled_focus_light.9.png common_signin_btn_icon_disabled_light.9.png common_signin_btn_icon_focus_dark.9.png common_signin_btn_icon_focus_light.9.png common_signin_btn_icon_normal_dark.9.png common_signin_btn_icon_normal_light.9.png common_signin_btn_icon_pressed_dark.9.png common_signin_btn_icon_pressed_light.9.png common_signin_btn_text_disabled_dark.9.png common_signin_btn_text_disabled_focus_dark.9.png common_signin_btn_text_disabled_focus_light.9.png common_signin_btn_text_disabled_light.9.png common_signin_btn_text_focus_dark.9.png common_signin_btn_text_focus_light.9.png common_signin_btn_text_normal_dark.9.png common_signin_btn_text_normal_light.9.png common_signin_btn_text_pressed_dark.9.png common_signin_btn_text_pressed_light.9.png dac_logo.png
The following screenshort is generated from the image listed above.
android_location_demo has the following Java source files.
android.UnusedStub.java com.example.demo.ActivityRecIntentService.java com.example.demo.ActivityRecognitionActivity.java com.example.demo.GeofenceIntentService.java com.example.demo.LocationIntentService.java com.example.demo.MainActivity.java