O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning Xamarin Studio

Book Description

Learn how to build high-performance native applications using the power of Xamarin Studio

In Detail

Xamarin Studio is the premier cross-platform development tool for .NET. Using this Xamarin 3 IDE, you can create high-performance native applications for iOS, Android, and Mac using the same .NET features and tools you are already familiar and comfortable with.

Often the most frustrating part of beginning to work with a new tool or workflow is the process of simply getting started. Whether you are brand new to .NET development, or a veteran of the framework, Learning Xamarin Studio will help you get your cross-platform development environment up and running smoothly and quickly. Starting with selecting the right Xamarin license for you and your organization, this book will cover how to install Xamarin Studio, integrate the necessary third-party tools, explain the features and tools provided by the IDE, and walk through developing, testing, and deploying applications.

What You Will Learn

  • Integrate Visual Studio, Xcode, and the Android SDK into your development environment
  • Get to grips with all the new Xamarin Studio enhancements from Xamarin 3
  • Network your Windows box to a Mac build machine for iOS testing and deployment from a PC
  • Install and customize your development environment to suit your workflow
  • Set up Apple and Google developer accounts, and create provisioning profiles for your physical iOS devices
  • Install iOS simulators, create Android device definitions, and link to your physical devices
  • Test and debug your applications using NUnitLite, Instruments, simulators, emulators, and physical devices, all from within Xamarin Studio
  • Deploy your creations to the appropriate app store

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Learning Xamarin Studio
    1. Table of Contents
    2. Learning Xamarin Studio
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Installing and Setting Up Xamarin Studio
      1. Xamarin Studio pricing plans
        1. Starter
        2. Indie
        3. Business
        4. Enterprise
        5. Understanding the pricing structure
          1. An example company
      2. Xamarin Studio platform options
        1. Xamarin.Android
        2. Xamarin.iOS
        3. Xamarin.Mac
      3. Installing development components
      4. Installing Xcode and the iOS SDK
        1. Installing Xcode from the App Store
        2. Installing Xcode manually
          1. Finishing the Xcode installation
      5. Installing Xamarin Studio
      6. Apple Developer Program
      7. Google Play Developer Program
      8. Setting up simulators and emulators
        1. iOS simulators
        2. Android emulators
          1. Creating a Nexus 7 AVD using the AVD Manager
          2. Creating a Samsung Galaxy S4 AVD using the SDK and AVD Manager
      9. Improving AVD performance
        1. Intel x86 Atom System Image
        2. Hardware Acceleration Execution Manager
        3. Run from Snapshot
        4. Third-party AVD options
      10. Setting up test devices
        1. Setting up iOS devices
          1. Obtaining a development certificate
          2. Provisioning your devices
        2. Setting up Android devices
          1. Enabling debugging on your device
          2. Installing USB drivers and connecting your device
      11. Setting up source control
      12. Additional resources for cross-platform developers
        1. Xamarin resources
        2. Third-party resources
      13. Summary
    9. 2. Learning and Customizing the XS Environment
      1. The Xamarin Studio IDE
      2. Creating your first iOS application
      3. Creating your first Android application
      4. The Solution pad
      5. Design pads
      6. Information pads
      7. Application, File, and Edit menus
      8. View and Search menus
      9. The Project menu
      10. Build and Run menus
      11. The Version Control menu
      12. Tools, Window, and Help menus
      13. Solution Options
        1. The General group
        2. The Build and Run groups
        3. The Source Code group
        4. The Version Control group
      14. Project Options
        1. The General group
        2. The Build group
          1. iOS-specific panes
            1. The General tab
            2. The Advanced tab
          2. Android-specific panes
            1. The Packaging tab
            2. The Linker tab
            3. The Advanced tab
        3. The Run group
        4. Source Code and Version Control groups
      15. Environment preferences
        1. Environment
        2. Projects
        3. Text Editor
        4. Source Code, Version Control, Other, and Packages groups
      16. Summary
    10. 3. Working with Xcode and the Android SDK
      1. Introduction to Xcode
        1. Toolbar
        2. The navigator area
        3. The utility area
        4. The debug area
        5. The editor area
      2. Outlets and Actions
        1. Outlets
        2. Actions
        3. Adding Outlets and Actions
      3. Adding a ViewController to our project
        1. How it works
      4. XIB, NIB, DESIGNER, and STORYBOARD files
      5. Xamarin Studio Designer for iOS
      6. Creating a storyboard in Xamarin Studio
        1. How it works
      7. Android SDK Manager
        1. Android Layouts
      8. Xamarin Studio Designer for Android
      9. Creating a Layout in Xamarin Studio
        1. How it works
      10. Summary
    11. 4. Plugins, Templates, Libraries, and Files
      1. Installing the Visual Studio plugin
        1. Configuring your Mac
        2. Configuring your Windows machine
        3. Configuring a Windows VM within Mac
        4. Final installation steps
        5. Configuring the Visual Studio toolbar
      2. Creating an iPhone application in Visual Studio
        1. How it works
      3. Project templates
        1. iOS project templates
        2. Android project templates
        3. Mac and Mac (open source) project templates
      4. Libraries
        1. Portable Class Library
        2. Binding Project
          1. iOS Binding Project
          2. Java Bindings Library
      5. Files
      6. Summary
    12. 5. Working with Xamarin.Forms
      1. Requirements for using Xamarin.Forms
      2. The Xamarin.Forms project templates
      3. The components of Xamarin.Forms
        1. Data binding
        2. Components
        3. Navigation
      4. The API design
        1. How it works
      5. The XAML design
        1. How it works
      6. Summary
    13. 6. Application Lifecycle
      1. The iOS application lifecycle
        1. The AppDelegate class
      2. UIViewController lifecycle methods
        1. Examining iOS lifecycles
        2. Examining the application lifecycle
      3. The Android application lifecycle
        1. Understanding application lifecycle
        2. Activity lifecycle methods
        3. Configuration changes
        4. Examining application states
        5. Examining the Activity lifecycle
      4. The background state
      5. Summary
    14. 7. Testing and Debugging
      1. The Xamarin debugger
      2. Unit tests
        1. Touch.Unit and Andr.Unit
      3. Creating a unit test project
        1. Running the tests
        2. How it works
      4. Simulators
      5. Testing in an iOS simulator
        1. Running the tests
        2. How it works
      6. Testing in an Android emulator
        1. Running the tests
        2. How it works
      7. Device testing
        1. Testing on an iOS device
        2. Testing on an Android device
      8. TestFlight
        1. Setting up a TestFlight account
      9. Instruments
      10. Device Monitor
      11. Logs
      12. Other testing considerations
      13. Summary
    15. 8. Deployment
      1. Deploying iOS applications
        1. Distribution provisioning profile
          1. Generating a production certificate signing request
          2. Submitting a production certificate signing request
          3. Creating the App ID
          4. Creating and installing the distribution profile
        2. Build configuration
        3. Bundle signing
        4. Publishing your application
          1. Setting up an iTunes Connect account
          2. Creating the application page
          3. Uploading the binary
      2. Deploying Mac applications
        1. Installing Developer Certificates
        2. Registering a Mac App ID
        3. Creating a Mac App Development certificate
        4. Creating Mac App Store Certificates
        5. Creating a Developer ID Certificate
        6. Registering the Mac OS X development machine
        7. Creating the development provisioning profiles
        8. Creating the production provisioning profiles
        9. Setting the app configuration
        10. Signing your application for direct deployment
        11. Build for direct deployment
        12. Signing your application for deployment to the Mac App Store
        13. Build for Mac App Store deployment
        14. Deploying to the Mac App Store
      3. Deploying Android applications
        1. Preparing your application for release compile
        2. Creating a private keystore
        3. Signing the APK
        4. Publishing to the Google Play Store
      4. Summary
    16. A. Images and Graphics Tables
      1. iOS application icons
      2. iOS 3.5-inch Retina display screenshots
      3. iOS 4-inch Retina display screenshots
      4. iOS iPad screenshots
      5. Mac OS X app screenshots
      6. Android application icons
      7. Android screenshots
    17. Index