Google maps on emulator - android

I'm working on a project which use Google maps v2. I've tried many emulators configurations (even genymotion) unfortunately i didn't make it work.
Can someone please show how he made it work.
Thanks.

The recent version of Genymotion no longer contains the ARM library support and Google Apps. I believe this is due to legal reasons, since they are now selling Genymotion as a product for developers.
Build a new VM from the new version of Genymotion and start the VM. Make sure you know what version you selected!
Download Google Apps zip package from: http://wiki.rootzwiki.com/Google_Apps
a. Pick version that is compatible with the Android version on your VM
b. Drag and drop the zip file onto the Genymotion VM window
c. You’ll get a question “Do you want to flash...” Say OK
d. Reboot the device by either closing the window or holding the power button to power off the VM
e. On reboot, Google Apps should be installed and you can login to a Gmail account
f. Note, some Google apps will probably crash on first run
2. Flash ARM library libhoudini(google):
a. Download zip file(libhoudini.zip)
b. Drag and drop zip file to flash to the system
c. Reboot again
At this point, you should have ARM support and Google apps. Please let me know if you have problems or something doesn’t work correctly.

you can't run Google Maps v2 on the Android emulator.

Related

Flutter Applications Not Showing In Google Play Store On Emulator

I have published several applications on the Google Play Store and I wanted to download one of them using an emulator.
What I noticed was, that when I look at the applications under my name through the Google Play Store on an emulated device, all Flutter applications are missing.
When I do the same thing in a browser on a computer, I do see all my applications (notice how Pill shows up):
Clarification: Pill is not the only Flutter application I have
published and the screenshot doesn't show the entire application
catalog)
I tried looking online for anything that would explain this, since even on my computer, I cannot download the applications, but they are showing up.
What could be causing this?
EDIT
When copying the direct Google Play link and pasting it in Chrome on the emulator, it opens Google Play and allows me to download and install the application.
When doing the same thing inside Google Play on the device, the link shows me nothing.
Your application would have bot been released in all countries. In web it might show all applications but in a device it will display based on countries that the app is available to check the same please follow these steps
Go to Play Console.
Select an app.
Select Release > Production > Countries/regions.
Update your app's country selection.
Submit your app update.
The Play Store enabled emulator images are x86 images so they can be executed faster on an Intel/AMD CPU. Physical smartphones at the moment all use ARM CPUs (armv8a 64 bit to be precise).
If an app uses CPU specific native libraries it needs to include one version them for each CPU architecture it plans to support. Therefore if the app you want to install in the emulator only has native libraries for ARM then it can not be executed on an x86 emulator and thus will not be shown in Play Store.

Google Play Services not supported

I am trying to develop an application on the Recon Jet and I am running into some issues. I am currently trying to run the Google Mobile Vision sample application called "FaceTracker." After running it on the Jet, I get an error message that says: FaceTracker relies on Google Play services, which is not supported by your device. Contact the manufacturer for assistance. Is there a way I can get Play services on the device? I have tried installing it's apk onto the device through ADB to no avail.
The device runs Android 4.2.1 and has a custom launcher so I can't access standard Android apps, although it does run a full fledged Android OS.
If anyone has any ideas, it would be greatly appreciated.
Thanks,
Aaron
As an example see cyanogen mod google play implementation
Based from this blog, this method requires root access.
Download a couple of APKs, you can usually find the newest bundle in a
zip package on XDA
Developers:
Google Play Store (the newest version you can find)
Google Services Framework
Google Login Service/Account Manager
If you are rooted you can copy them to your root directory to
System/App using a root manager like ES File
Explorer.
Then just restart your device.
If this doesn't work first time you might need to change the
permissions on the new APKs to match the rest on your device. Use a
file explorer like ES for this. Apparently if you're not rooted you
can simply install each APK then reboot and it works for some devices.
Reboot and add your Google account in Settings > Accounts > Add
account.
Look for the Play Store in your app drawer.
Hope this helps!

Google Maps API v2 does NOT works on Emulator, but NOT on Device

Thanks to the community I could solve my last problem. This --->(Google Maps API v2 - Fragment's error)
The app works on the emulator (it shows the "This app won't run unless you update Google Play Services), something normal, but when I put the .apk on the phone (4.2.2 version), it crashs!
I read somehting about different API keys. Now in my proyect, I have the API Key i got from the program (with the SHA1 fingerprint from Eclipse).
Do I need maybe a different one?
Thank you, and sorry for these two consecutive questions!
You don't need another key. You just need a good emulator to run Google Maps. I am using GenyMotion. It is really fast & efficient. Give it a try.
Follow The Steps
1)Install the Oracle VirtualBox Latest version.
2)Install the geneymotion latest version.
3)Download following Apps,
www.dropbox.com/s/lfde3juixuy88rg/GoogleLoginService.apk
www.dropbox.com/s/9kurwyhbbuecaea/GoogleServicesFramework.apk
www.dropbox.com/s/9x8924gtb52ksn6/Phonesky.apk
www.dropbox.com/s/koo4wiwqg8agy8n/com.google.android.apps.maps-1.apk
www.dropbox.com/s/bh058hbrelccfsr/com.google.android.gms-2.apk
4)Run the Genymotion & install the device version,
5)Drag & Drop these app to Genymotion.
6)Restart the Genymotion.
7)Your genymotion is ready to run the Google Maps,

No option to add a google account in Android AOSP

I'm having trouble with a recent Gingerbread AOSP build as I cannot add a google account in the settings -> accounts & sync menu. It seems like the option isn't there: I can add an exchange account, but not a google account. When I click on Add account, it goes to the Add an Exchange account screen, instead of letting me choose which kind of account I want to add (google or exchange).
My build is on Ubuntu 10.10 32-bit with Sun Java 1.6.0_24, so it is a 32-bit build, which is non standard for gingerbread, but I managed to get it to work using the instructions on the google site, as well as the instructions in this thread (http://groups.google.com/group/android-platform/browse_thread/thread/b0bb991131589363?pli=1). Other than that it is the stock emulator (lunch 1). I haven't tried the other configurations so I don't know if the problem repeats across them all.
Any ideas?
Cheers,
IG808
Google's proprietary applications are not included in AOSP. You'll have to find them elsewhere and install them to your device.

Use Google apps in the emulator

Would it be possible to provide a emulator image that has all the Google apps that come with real devices, like Gmail etc?
I don't have access to a 2.0 device which makes it close to impossible for me to develop/debug apps which uses AccountManager etc.
Download the Android Dev Phone system image from http://developer.htc.com/adp.html.
Then, create a new AVD (using the android tool or adb) with the matching version. The avd directory will appear at the .android directory inside your home directory (Run %USERPROFILE% on windows). Then, put system.img file downloaded into the <name of avd>.avd directory. Start the emulator and you will use Android with Google apps installed.
Disclaimer: about whether it is legal or not to download and use such images, I don't know. Please read the text there and decide yourself.
Given the trouble that Cyanogenmod had with trying to redistribute Google's apps, I would say it's not an option. However, if it's something in the Android source (like the calendar), you can compile it yourself.
If you just want to debug the app, you don't need to create a new image. You can run some of the google apps including gmail and google maps in the emulator. If you go to the Android SDK and AVD manager in the Eclipse Android plugin, and then go to "available packages", for every SDK there are two downloads for each version of the api. There is the one with Google Apps and one with out. The one with Google apps has apps such as gmail and google maps. It does not have all Google apps. The market is not there for instance .

Categories

Resources