-
Book Overview & Buying
-
Table Of Contents
Learning Xamarin studio
By :
Simulators and AVDs are acceptable for development testing, but it is unwise to rely solely on these virtual environments. Therefore, it is important to test on at least one physical device that matches your target environment.
Although setting up the iOS simulator is a joy, setting up devices for testing is anything but a joy. To test using your iOS device, you must have several items in place. If you have been following along up until now, you already have your Apple iOS Developer Program account. Now, you need a development certificate and a provisioning profile for your device.
If you do not intend to develop iOS applications, you may skip this walkthrough for now and come back to it whenever you're ready.
There are two ways to generate your development certificate, and the method you choose is largely based on whether you are developing on a Mac or on a Windows machine. First, for those who are developing on a Mac, we'll look at how to generate your development certificate and associate it with your application within Xamarin Studio. Here are the steps you need to follow:
For those developing iOS applications on a Windows machine, the process is only slightly more involved and requires manual generation of the developer certificate. The steps are follows:
Now that you have a developer certificate for your applications to link to, you still need to add your devices to your developer account by a process called provisioning. To provision a device, we must first create a provisioning profile containing that device's information. You must repeat the following process for every device you want to provision. Here are the steps you need to follow:
In order to test on an Android device, three steps must be performed:
If you do not intend to develop Android applications, you may skip this walkthrough for now and come back to it whenever you're ready.
To enable debugging on Android 3.2 and older devices, perform the following steps:
To enable debugging on Android 4.0 to 4.1, perform the following steps:
To enable debugging on Android 4.2 and higher, perform the following steps:
Using a USB cable is the easiest method of connecting your device and development machine. If you are developing on a Mac, you just need to plug it in. If you are developing on a Windows machine, you may also need to install additional USB drivers for your specific device. Since each manufacturer tends to release their own unique USB drivers, you will need to search over the Internet for the specific instructions for your device.
Under certain circumstances, however, you may want to use Wi-Fi to connect to your device. Connecting via Wi-Fi is completely optional so you may skip this section if it doesn't apply to you. Perform the following steps:
adb tcpip 5555
adb connect 192.168.254.12:5555
abd disconnect 192.168.254.12:5555
Change the font size
Change margin width
Change background colour