GeofencingApi is great feature for making notifications when user enter to specific place on map and also exit from specific place. I’ve updated official GeofencingApi tutorial to make it more visual. Here application which able register geofence just after map click. Use it for register your place and test how Read more…
Hi. Here i want show you how to use Android GPS quickly. This is simple, may be not perfect example how to get current location by GPS.
To use GPS in your application first of all you must specify the uses-permission in Android manifest file:
If you don’t set this permission the application can’t get access to location service.
To use this application with android emulator you must mock location data. To do this using Eclipse you must:
- Select Window > Show View > Other > Emulator Control
- In Emulator Control panel enter the GPS coordinates under Location Controls and press Send
This operation you must do every time then you Run application.
Below you can see the application activity (HelloAndroidGpsActivity.java) source. Below you can download the source code of this Android project.
For more information about Android GPS Usage look HERE