I started developing an app which requires Google maps.
To use google maps in an android app, we need to take care of following things.
1) Google play services : this can be downloaded from SDK manager in Extras category.
2) support jar
3) We need to generate API key. There are two types of Keys available. One is debug key and second is release key. Whenever we deploy an app using Eclipse, by default we use debug key.
There are a lot of tutorials available to generate API key. Without it Google maps wont load.
4) Check access permissions in androidmanifest file.
Note : Don't use ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION in one go.
Use ACCESS_FINE_LOCATION instead.
Above note use useful if you are facing issue getting current location. If location object is null then above note is very helpful.
5) Google maps will work on physical device only. We wont be able to test our app on emulator.
Have a happy coding!
To use google maps in an android app, we need to take care of following things.
1) Google play services : this can be downloaded from SDK manager in Extras category.
2) support jar
3) We need to generate API key. There are two types of Keys available. One is debug key and second is release key. Whenever we deploy an app using Eclipse, by default we use debug key.
There are a lot of tutorials available to generate API key. Without it Google maps wont load.
4) Check access permissions in androidmanifest file.
Note : Don't use ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION in one go.
Use ACCESS_FINE_LOCATION instead.
Above note use useful if you are facing issue getting current location. If location object is null then above note is very helpful.
5) Google maps will work on physical device only. We wont be able to test our app on emulator.
Have a happy coding!