How to install Google Play Service in Xamarin Android Player - xamarin

How to install Google Play Service in Xamarin Android Player. I have found the link https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator which does not work in windows. It does not allow me to drop the Google Play Services .zip file from www.teamandroid.com/gapps/ .Any suggestion or link please.
Thanks!

I would recommend to use the android emulator that ships with the current version of Android Studio (by now 2.1). Google did a good job and a major overhaul with that version. It now is as fast as Genymotion or the Xamarin Android Player. Plus it as Google services support build in.

Related

Xamarin Android Emulator with Maps

I want to run local test of an app using the Android Emulator within Visual Studio 17. It works great using the Visual Studio Emulator for Android and the app is almost complete.
However I need to add a map with a few pins and I have this working and tested on my PC using the UWP app. However trying to run on the Android emulator there is no Maps as there is no play store.
I have googled lots and found lots of things to try but none seem to work and I notice that the latest of all the pages and blogs I have read are dated 2015 so in software terms and indeed Xamarin they are very old.
So if I want to test the maps part of my app what is the best way if I can't get the Emulator to run with maps or am I missing some fancy new tool to test with other than shipping the app and hoping that it works in the wild?
Thanks
Cliff.
You cannot see the map as Visual studio emulators for Android do not have google play services installed by default. In order to test and see your map, you should install google play services in the android emulator.
You can do this by installing gapps on your emulator which provides you with google play services functionallity. The installation is just a drag and drop in the emulator. After installing this packge, you could use maps on the emulator.
I would create a new Android VM in that process you can tell it to add the google store to the android VM

Cannot find FBAndroid.apk as per Facebook Android SDK docs

I am trying to use, Facebook Android SDK (Xamarin Component) in Visual Studio 2017. The chosen emulator is,
I downloaded the SDK as per the Xamarin documents,
To take advantage of the native Facebook dialogs, the Facebook
application must be installed on the device. If the Facebook
application is not installed on the device, fallbacks to Web based
dialogs can instead be used. If you are testing on an emulator which
does not have the ability to install Facebook from the Play store, you
can install FBAndroid.apk which is included in the SDK which can be
downloaded from:
https://developers.facebook.com/docs/android/downloads
The problem is, I don't see any FBAndroid.apk inside the zipped SDK file.
The questions are,
Is my understanding correct about the installation?
If so, from where would I find the apk to install in my emulator?
Edit: Installing an APK is not my concern now, I am worried about this part.
install FBAndroid.apk which is included in the SDK
P.S: Edited the title to reflect the change.
That section of the Xamarin doc is outdated. The Facebook APK is has not been available as a separate download since the v3 version of the SDK (circa 2015).
If you look under the Facebook SDK for Android v3.x Downloads section of the SDK Downloads you will find old FBAndroid.apk versions available for separate download.
If your emulator does not have the Play Store installed (Genymotion?), install it via OpenGApps and then install Facebook from the PlayStore.

xamarin studio android emulator starting take infinite time

I am using xamarin studio community edition on my macbook pro. when I try to run any sample project on android emulator it takes infinite time.
Can you please suggest. FYI It was working previosuly . Please check screen shot Android emulator error
I would highly suggest using the Xamarin Android Player instead of Google's default emulator manager.
The Xamarin Android Player is much faster and more reliable in my opinion although I have also heard that choosing different Google Play emulator images can make a big difference. Installing HAXM can also speed up the default Intel Google Play emulator images.
Download the Xamarin Android Player from here.
*Edit: Thanks to #SushiHangover for pointing out the fact that Xamarin deprecated the Xamarin Android Player. SushiHangover suggests using the Genymotion Android emulator which I have heard good things about but have not tried yet.

Play services 9.+ don't install wear app

I have an application with a wear and a handheld side.
Before the update:
compile 'com.google.android.gms:play-services-wearable:7.8.0'
compile 'com.google.android.gms:play-services-location:7.8.0'
After the update:
compile 'com.google.android.gms:play-services-wearable:9.0.2'
compile 'com.google.android.gms:play-services-location:9.0.2'
When I've updated the gradle with the last google play services version the application is not installed on the watch anymore. Does anyone know if there is a different requirement to automate the process of installing the application on the watch?
The watch app only gets installed if the watch has the required Google play services.
This changed recently. Maybe 9.0 or maybe it's android wear 1.5 doing the check. it used to install no matter the version before.
This is a common problem at the moment, a few users having trouble updateing their watches to greater than 9.0. there's even a g+ post on the android wear developer community asking for bug reports to help fix the problem.

Basic Android App not working on Xamarin Android Player via VS2015

I have been trying to run basic Android App provided by Visual Studio 2015 via XAMARIN Android Player. Program gets build and deployed successfully, yet, App or anything does not appear on screen. Xamarin Player takes more than 20 mins to start and then nothing happens. Find Screenshots as well.
WIthin the Android SDK Manager look under Extras there is an package called Intel x86 Emulator Accelerator (HAXM Installer). Installing HAXM will increase the speed of the emulator when you use the Intel Atom CPU/ABI
Also when creating the emulator device check Use Host GPU for increaded performance.
I ran into few issues with Xamarin Android Player as well. Currently I am using Genymotion Emulator and it is much faster.
Well, Well, Well, I got my thing up and running. Following are the steps I performed:
After installing Xamarin for VS2015, I checked for latest Android SDK via SDK Manager. Got all the necessary updates installed.
Installed Xamarin Android Player and used emulator Nexus 5 KitKat API level 19.
Earlier I was using Nexus 5 Lollipop, was the reason why, it was not working. May be its not fixed for buil yet.
As, described by Mr.Pilatus in above answer, the particular HAXM things surely does help in accelerating emulator.
Got my Android app running.
Thank you all for all the necessary suggestion and guiding my in my baby steps in XAMARIN development. Gracias. NAMASTE!

Resources