Xamarin mobile application development for Android : learn to develop full featured Android apps using your existing C♯ skills with Xamarin. Android /
A step-by-step tutorial that follows the development of a simple Android app from end to end, through troubleshooting, and then distribution. The language used assumes a knowledge of basic C#. If you are a C# developer with a desire to develop Android apps and want to enhance your existing skill set...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2014.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: The Anatomy of an Android App; The Android platform; Linux; Native libraries; The Android runtime; The Application Framework; Applications; The Android packages (.apk); The application manifest; Versions of Android; The Android applications; Activities; The lifecycle of an activity; The states of an activity; The events of an activity; Services; Content providers; Broadcast receivers; Views and ViewGroups; Declarative versus programmatic View creation
- User interface widgetsCommon layouts; Adapter layouts; XML layout files; Element and attribute names; IDs; Using XML layouts from activities; Intents; Resources; The R.java file; Summary; Chapter 2: Xamarin. Android Architecture; Why Xamarin. Android?; What is Mono?; Mono and Dalvik side by side; The Java Native Interface; Peer objects; Xamarin. Android application packaging; The Android bindings design; Design principles; C# properties; Delegates; Constants to enumerations; Development environments; Xamarin Studio; Xamarin for Visual Studio; IDE comparison; Compatibility; Summary
- Chapter 3: Creating the Points of Interest AppThe sample app; Installing Xamarin. Android; Creating the app; Xamarin Studio IDE; The Project Options view; Setting the target framework; Setting the app icon and package name; The initial activity; Running and debugging the app; Creating and customizing emulators; Using the x86 emulator; Debugging with an Android device; Enabling USB debugging; Installing a USB driver; Running apps on a device; Behind the scenes; Peer object; The AndroidManifest.xml file; Summary; Chapter 4: Creating a Data Storage Mechanism
- Creating the Point of Interest entity classCreating the POI storage interface; Implementing the POI storage services; Using Xamarin. Android NUnitLite; Setting up for tests; Creating the test methods; Executing the tests; Json.NET; Downloading Json.NET; Implementing and testing the POIJsonService methods; Implementing caching; Implementing SavePOI(); Implementing GetPOI(); Implementing DeletePOI(); Summary; Chapter 5: Adding a List View; Creating the POI ListView layout; Adding a RelativeLayout view group; Adding an ImageView widget; Adding a LinearLayout widget
- Adding the name and address TextView classesAdding the Distance TextView; Populating the ListView item; Shared instance of IPOIDataService; Permissions; Creating POIListViewAdapter; Implementing a constructor; Implementing Count { get; }; Implementing GetItemId(); Implementing the index getter method; Implementing GetView(); Reusing row views; Populating row views; Hooking up POIListViewAdapter; Adding actions to ActionBar; Defining the menu xml file; Setting menus in OnCreateOptionsMenu; Handling selection in OnOptionsItemSelected(); Configuring an SD card for the emulator; Running POIApp