-
Notifications
You must be signed in to change notification settings - Fork 250
Setup Xamarin CRM app
#Xamarin CRM Development Environment Setup
The following steps describe how to set up your development environment to run the Xamarin CRM demo. The setup instructions utilize Visual Studio 2013 Professional as the development IDE, and Xamarin Studio where noted.
##1 - Xamarin Platform Make sure you have successfully installed the Xamarin platform. Xamarin.iOS and Xamarin.Android installation guides are available here.
###Check for Latest Xamarin Platform Updates Xamarin Studio and Visual Studio with the Xamarin addon will both periodically automatically heck for updates. You can also manually check for updates.
OS X | Windows |
---|---|
![]() |
![]() |
##2 - Xamarin Android Player
Download & Install: Install the Xamarin Android player for OS X or Windows to debug on an Android simulator.
Google Play Services & Maps: Xamarin CRM utilizes Google Maps and Google Play Services. It is possible to install these services yourself by using sources like those from CyanogenMod.
Download the zip file, unlock the Android Player, and drag and drop the zip file onto the Android Player. Restart and update apps, and install Google Maps from the Play store.
Note: The Android Player cannot run inside a virtual machine or over Remote Desktop or VNC since it relies on virtualization and OpenGL. If you are running a virtual Windows instance on a Mac host, run Android Player for OS X on the Mac host. The Windows instance will be able to connect via ADB (see below).
##3 - Physical Device Setup To deploy and debug the application on a physical device, refer to these links:
###iOS Deploying and debugging to an iOS device requires an active subscription with the Apple Developer Program. Follow these steps to provision your iOS device.
###Android Follow this guide for setting up an Android device for development.
#Project Setup
##Restore NuGet packages Restore NuGet packages for the project
##Android - Google Maps API Key If maps do not show up on the Android version of the app, make sure you have followed the steps in the “Pre-Requisites: Xamarin Android Player” (above).
If the maps still do not render, you may need to generate your own API key for Google Maps API v2. Instructions on how to do this are located here:
##Debugging The following debugging guides are for users running Windows and Visual Studio in a virtual machine on the Mac, or on a separate physical machine from a Mac build host.
###iOS Make sure the iOS Build Host is running on the Mac host and Visual Studio is connected. Right-click on the MobileCRM.iOS project and set it as the Startup Project.
Select the iOS device and press F5 to start debugging.
###Android
Right-click on the MobileCRM.Android project and set it as the Startup Project.
Connect to the Android Player (running from the host Mac OS) via the Android ADB Connect command.
On the Windows instance, open a command window where the Android SDK is installed (suggest adding this location to the PATH environment variable so it is always available).
Find the IP address of the Android Player by opening the Device Details.
Type: “adb connect xxx.xxx.xxx.xxx” where xxx is the IP address of the Android Player.
When Visual Studio is started it will show the Android Player instance as a device. If the device does not show up in the list try closing and restarting Visual Studio.
div