Do i have to register my application to Google's console for using location services or can i still use that service without registering while testing my application on AVD or my phone?
Asked
Active
Viewed 83 times
1
-
1No you don't need to register. In Emulator you have to just manually send GPS coordinates using ddms or adb. – Rohan Kandwal Jan 22 '14 at 21:09
-
@RohanKandwal so only when i will start to use my Application with google maps i will need to register for their API? – user1779374 Jan 22 '14 at 21:12
2 Answers
1
No. You don't have to register to use location services.
You need a locationmanager from which you setup listeners for the GPS.
if (locationManager == null) {
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
}
if (!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
buildAlertMessageNoGps();
}
... http://developer.android.com/reference/android/location/LocationManager.html
danny117
- 5,581
- 1
- 26
- 35
1
You need not to register anywhere for using location services. Registration will be required if you want to include Google Map Api in your code. But I must mention that you will need to include permissions to use location services and also if you are using an emulator, must know how to send GPS coordinates using DDMS or ADB.
How to emulate GPS location in the Android Emulator?
Above question will show you how to send mock GPS coordinates to Emulator using DDMS or ADB.
Community
- 1
- 1
Rohan Kandwal
- 9,112
- 8
- 74
- 107