Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Mathieu Nayrolles
Xamarin Studio for Android Programming: A C# Cookbook
Xamarin Studio for Android Programming: A C# Cookbook
Table of Contents
Xamarin Studio for Android Programming: A C# Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started
Introduction
A quick tour of Visual Studio
Installing the Xamarin suite
Getting ready
How to do it...
How it works...
There's more...
Testing the simulator
Connecting Xamarin Studio and Visual Studio to a versioning control system
Using another Android SDK
See also
Building a Hello World App!
Getting ready
How to do it...
How it works...
There's more...
Testing on a physical device
Source code
See also
2. Mastering the Life and Death of Android Apps
Introduction
Understanding Android activities
How to do it...
How it works...
There's more...
See also.
Practicing the activities' lifecycles
Getting ready
How to do it...
How it works...
OnCreate
There's more...
Events beyond the life cycle methods
See also
Going through state-saving management
Getting ready
How to do it...
How it works...
There's more...
See also
3. Building a GUI
Introduction
The multiscreen application
Getting ready
How to do it...
How it works...
There's more...
Communicating data between activities
See also
Using form elements
Getting ready
How to do it...
How it works...
There's more...
See also
Using rotation
Getting ready
How to do it...
There's more...
Do not restart my activities while rotating
Saving states during rotation
See also
Adding layouts
Getting ready
How to do it...
How it works...
See also
Customizing components
Getting ready
How to do it...
How it works...
There's more...
Customizing other components
See also
4. Using Android Resources
Introduction
Creating a SplashScreen
Getting ready
How to do it...
How it works...
There's more...
See also
Using an icon for your application
Getting ready
How to do it...
How it works...
There's more...
Google Play Store icons
Designing trick
See also
Playing a song
Getting ready
How to do it…
How it works...
There's more...
Playing sound that is not stored locally
Playing online audio
See also
Playing a movie
Getting ready
How to do it...
How it works...
See also
5. Using On-Phone Data
Introduction
Storing preferences
Getting ready
How to do it...
How it works...
There's more...
Share preferences
Simple file reading/writing
Getting ready
How to do it...
How it works...
There's more...
Write on external storage
Other file types
See also
Serializing and deserializing objects into files
Getting ready
How to do it...
How it works...
Using the SQLite database
Getting ready
How to do it…
How it works...
There's more...
LinQ
Direct SQL
See also
6. Populating Your GUI with Data
Introduction
Populating simple objects
Getting ready
How to do it...
How it works...
There's more...
Labels
Retrieve the text
Know if the text has been modified
See also
Populating the datepicker
Getting ready
How to do it...
How it works...
There's more...
Date manipulation
See also
Populating the spinner
Getting ready
How to do it...
How it works...
See also
Populating ListView
Getting ready
How to do it...
How it works...
There's more...
Fast scroll
See also
Creating a custom adapter
Getting ready
How to do it...
How it works...
See also
7. Using Android Services
Introduction
Implementing a started service
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing a bound service
Getting ready
How to do it...
How it works...
There's more...
See also
Send notifications from your service
Getting ready
How to do it...
How it works...
See also
Creating a news feed service
Getting ready
How to do it...
How it works...
See also
8. Mastering Intents – A Walkthrough
Introduction
Opening external applications
Getting ready
How to do it...
How it works...
There's more...
Dialing a number
Opening a web page
See also
Monitoring time
Getting ready
How to do it...
How it works...
See also
Application monitoring
Getting ready
How to do it...
How it works...
Solving equations
How to do it...
How it works...
See also
Sending an SMS
How to do it...
How it works...
9. Playing with Advanced Graphics
Introduction
Using the camera
Getting ready
How to do it...
How it works...
There's more...
Deployment failed. FastDev directory creation failed
A TextureView or a subclass can only be used with hardware acceleration enabled
Black screen
See also
Taking screenshots with the camera
Getting ready
How to do it...
How it works...
See also
Creating animations
Getting ready
How to do it...
How it works...
There's more...
Property animations
Drawable animations
See also
Creating your own gestures
Getting ready
How to do it...
How it works...
There's more...
See also
10. Taking Advantage of the Android Platform
Introduction
Mastering fragments
Getting ready
How to do it...
How it works...
There's more...
Programmatically adding Fragments
Adding fragments to the backstack
Exploring Jelly Bean
Getting ready
How to do it...
How it works...
There's more...
Ice Cream Sandwich
GingerBread
See also
Exploring KitKat
Getting ready
How to do it...
How it works...
See also
Integrating maps
Getting ready
How to do it...
How it works...
See also
11. Using Hardware Interactions
Introduction
Beaming messages with NFC
Getting ready
How to do it...
How it works...
See also
Using the accelerometer and other sensors
Getting ready
How to do it...
How it works...
There's more...
Motion sensors
Position sensors
Environment sensors
Refresh rate of sensors
Listen only when needed
See also
Using Bluetooth
Getting ready
How to do it...
How it works...
See also
Using GPS
Getting ready
How to do it...
How it works...
There's more...
Reverse geocode address
See also
12. Debugging and Testing
Introduction
Debugging in an emulator
Getting ready
How to do it...
How it works...
There's more...
Parameterizing breakpoints
Debugging on a phone
Getting ready
How to do it...
How it works...
See also
Unit testing
Getting ready
How to do it...
How it works...
See also
13. Monetizing and Publishing Your Applications
Introduction
Creating an Ad unit
Getting ready
How to do it...
How it works...
See also
Installing the required SDKs
Getting ready
How to do it...
How it works...
See also
Integrating advertisements in your applications
Getting ready
How to do it...
How it works...
There's more
See also
Preparing your application for publishing
Getting ready
How to do it...
How it works...
See also
Publishing your application
Getting ready
How to do it...
How it works...
There's more...
See also
Conclusion
A. Mono – The Underlying Technology
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Xamarin Studio for Android Programming: A C# Cookbook
Table of Contents
Xamarin Studio for Android Programming: A C# Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started
Introduction
A quick tour of Visual Studio
Installing the Xamarin suite
Getting ready
How to do it...
How it works...
There's more...
Testing the simulator
Connecting Xamarin Studio and Visual Studio to a versioning control system
Using another Android SDK
See also
Building a Hello World App!
Getting ready
How to do it...
How it works...
There's more...
Testing on a physical device
Source code
See also
2. Mastering the Life and Death of Android Apps
Introduction
Understanding Android activities
How to do it...
How it works...
There's more...
See also.
Practicing the activities' lifecycles
Getting ready
How to do it...
How it works...
OnCreate
There's more...
Events beyond the life cycle methods
See also
Going through state-saving management
Getting ready
How to do it...
How it works...
There's more...
See also
3. Building a GUI
Introduction
The multiscreen application
Getting ready
How to do it...
How it works...
There's more...
Communicating data between activities
See also
Using form elements
Getting ready
How to do it...
How it works...
There's more...
See also
Using rotation
Getting ready
How to do it...
There's more...
Do not restart my activities while rotating
Saving states during rotation
See also
Adding layouts
Getting ready
How to do it...
How it works...
See also
Customizing components
Getting ready
How to do it...
How it works...
There's more...
Customizing other components
See also
4. Using Android Resources
Introduction
Creating a SplashScreen
Getting ready
How to do it...
How it works...
There's more...
See also
Using an icon for your application
Getting ready
How to do it...
How it works...
There's more...
Google Play Store icons
Designing trick
See also
Playing a song
Getting ready
How to do it…
How it works...
There's more...
Playing sound that is not stored locally
Playing online audio
See also
Playing a movie
Getting ready
How to do it...
How it works...
See also
5. Using On-Phone Data
Introduction
Storing preferences
Getting ready
How to do it...
How it works...
There's more...
Share preferences
Simple file reading/writing
Getting ready
How to do it...
How it works...
There's more...
Write on external storage
Other file types
See also
Serializing and deserializing objects into files
Getting ready
How to do it...
How it works...
Using the SQLite database
Getting ready
How to do it…
How it works...
There's more...
LinQ
Direct SQL
See also
6. Populating Your GUI with Data
Introduction
Populating simple objects
Getting ready
How to do it...
How it works...
There's more...
Labels
Retrieve the text
Know if the text has been modified
See also
Populating the datepicker
Getting ready
How to do it...
How it works...
There's more...
Date manipulation
See also
Populating the spinner
Getting ready
How to do it...
How it works...
See also
Populating ListView
Getting ready
How to do it...
How it works...
There's more...
Fast scroll
See also
Creating a custom adapter
Getting ready
How to do it...
How it works...
See also
7. Using Android Services
Introduction
Implementing a started service
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing a bound service
Getting ready
How to do it...
How it works...
There's more...
See also
Send notifications from your service
Getting ready
How to do it...
How it works...
See also
Creating a news feed service
Getting ready
How to do it...
How it works...
See also
8. Mastering Intents – A Walkthrough
Introduction
Opening external applications
Getting ready
How to do it...
How it works...
There's more...
Dialing a number
Opening a web page
See also
Monitoring time
Getting ready
How to do it...
How it works...
See also
Application monitoring
Getting ready
How to do it...
How it works...
Solving equations
How to do it...
How it works...
See also
Sending an SMS
How to do it...
How it works...
9. Playing with Advanced Graphics
Introduction
Using the camera
Getting ready
How to do it...
How it works...
There's more...
Deployment failed. FastDev directory creation failed
A TextureView or a subclass can only be used with hardware acceleration enabled
Black screen
See also
Taking screenshots with the camera
Getting ready
How to do it...
How it works...
See also
Creating animations
Getting ready
How to do it...
How it works...
There's more...
Property animations
Drawable animations
See also
Creating your own gestures
Getting ready
How to do it...
How it works...
There's more...
See also
10. Taking Advantage of the Android Platform
Introduction
Mastering fragments
Getting ready
How to do it...
How it works...
There's more...
Programmatically adding Fragments
Adding fragments to the backstack
Exploring Jelly Bean
Getting ready
How to do it...
How it works...
There's more...
Ice Cream Sandwich
GingerBread
See also
Exploring KitKat
Getting ready
How to do it...
How it works...
See also
Integrating maps
Getting ready
How to do it...
How it works...
See also
11. Using Hardware Interactions
Introduction
Beaming messages with NFC
Getting ready
How to do it...
How it works...
See also
Using the accelerometer and other sensors
Getting ready
How to do it...
How it works...
There's more...
Motion sensors
Position sensors
Environment sensors
Refresh rate of sensors
Listen only when needed
See also
Using Bluetooth
Getting ready
How to do it...
How it works...
See also
Using GPS
Getting ready
How to do it...
How it works...
There's more...
Reverse geocode address
See also
12. Debugging and Testing
Introduction
Debugging in an emulator
Getting ready
How to do it...
How it works...
There's more...
Parameterizing breakpoints
Debugging on a phone
Getting ready
How to do it...
How it works...
See also
Unit testing
Getting ready
How to do it...
How it works...
See also
13. Monetizing and Publishing Your Applications
Introduction
Creating an Ad unit
Getting ready
How to do it...
How it works...
See also
Installing the required SDKs
Getting ready
How to do it...
How it works...
See also
Integrating advertisements in your applications
Getting ready
How to do it...
How it works...
There's more
See also
Preparing your application for publishing
Getting ready
How to do it...
How it works...
See also
Publishing your application
Getting ready
How to do it...
How it works...
There's more...
See also
Conclusion
A. Mono – The Underlying Technology
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset