Map not getting in emulator android api v2
I got finally map in my emulator. I followed these steps to achieve it.
Create avd and start emulator
Go to platform tools path present in Android SDK and put these apk's in it.
- Install com.android.vending.apk (Google Play Store, v.3.10.9)
- Install com.google.android.gms.apk (Google Play Service, v.2.0.12)
Install these apk's one by one by going to platform tools path by using command prompt(shift+Right click-->open command window here).Follow these commands
- adb devices
- adb install com.android.vending.apk
- adb install com.google.android.gms.apk
- Import google-play-services_lib project which is present at project location and add it to your project.(path of lib project:D:\Softwares\android-sdk\extras\google\google_play_services\libproject)
- Restart emulator and clean your project and run it through emulator.
That's it. :)
Android google maps api v2 its blank on device and shows on emulator
I found the solution and it was that Google uses an api key for debug and one for release and since I was using my own device it is consider as a release even though I'm just testing (google doesnt know that haha), that's it its just another key.
Related Topics
Using the Limit Statement in a SQLite Query
Android Webview Click Open Within Webview Not a Default Browser
Bring Application to Front After User Clicks on Home Button
Continually Running Background Service
Android Searchview Filter Listview
How to Set the Airplane_Mode_On to "True" or On
Room Persistence: Error:Entities and Pojos Must Have a Usable Public Constructor
How to Order My SQLite Database in Descending Order, for an Android App
How to Set Text to View from Drawer Header Layout in Navigation Drawer Without Inflating View
Error:Execution Failed for Task ':App:Transformresourceswithmergejavaresfordebug'
Item with App:Showasaction Not Showing
Turning on Screen from Receiver/Service
Glass Voice Command Nearest Match from Given List
Android Emulator Camera Custom Image
Changing Screen Brightness Programmatically in Android
How to Change Fragment's Textview's Text from Activity
Android - Emulator in Landscape Mode, Screen Does Not Rotate