Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Mike Dunn, Shaun Lewis
Native Mobile Development
Preface
Why We Wrote This Book
Who This Book Is For
How This Book Is Organized
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments
I. Tasks and Operations
A Note About the State of Mobile Development
1. UI Controllers
Tasks
Android
How to Create Your App’s Starting UI Controller
How to Change the Active UI Controller
Understanding the UI Controller Life Cycle
iOS
How to Create Your App’s Starting UI Controller
How to Change the Active UI Controller
Understanding the Controller Life Cycle
What We’ve Learned
2. Views
Tasks
Android
Create a New View
Nesting Views
Update a View’s State
iOS
Create a New View
Nesting Views
Interface Builder to the Rescue
Update a View’s State
Modifying Position
What We’ve Learned
3. Custom Components
Tasks
Android
How to Create a Custom View
How to Use a Custom View
iOS
How to Create a Custom View
How to Use a Custom View
What We’ve Learned
4. User Input
Tasks
Android
Receive and React to a Tap
Receive and React to Keyboard Input
Handle Compound Gestures
iOS
Receive and React to a Tap
Receive and React to Keyboard Input
Handle Compound Gestures
What We’ve Learned
5. Message Passing
Tasks
Android
Use a Callback to React to an Operation
Dispatch a Message to Any Interested Subscribers
Listen for, and React to, Messages Dispatched Within a System
iOS
Use a Callback to React to an Operation
Dispatch a Message to Any Interested Subscribers
Listen for, and React to, Messages Dispatched Within a System
Closures Instead of Selectors
Stop Listening for Notifications
What We’ve Learned
6. Files
Tasks
Android
Get Properties from the File Like Size or Last Modified Date
Read and Write Data to and from a File
Copy Data from One File to Another
iOS
Get Properties from the File Like Size or Last Modified Date
Reading and Writing Data to and from a File
Copy Data from One File to Another
What We’ve Learned
7. Persistence
Tasks
Android
Establish a Database Connection
Create a Database Table or Persistent Object
Write Data to That Table or Persistent Object
Read Data from That Table or Persistent Object
iOS
Set Up and Connect to a Persistence Layer
Define and Create a Database Table or Persistent Object
Write and Persist Data to SQLite
Read Data from SQLite
What We’ve Learned
8. Concurrency (Multi-Threading)
Tasks
Android
Perform a Task in a Background Thread
Act on the Results of Work Performed in the Background Thread on the Main Thread
Terminating a Thread
iOS
Perform a Task in a Background Thread
Act on the Results of Work Performed in the Background Thread on the Main Thread
What We’ve Learned
9. Networking
Tasks
Android
Read and Print a Text File on a Remote Server
Make an HTTP POST Request
Download a Binary File
iOS
Read and Print a Text File on a Remote Server
Make an HTTP POST Request
Download a Binary File
What We’ve Learned
10. User Feedback
Tasks
Android
Use Framework-Provided Tools to Show the User Feedback
Snackbar
Update the Status Bar
iOS
Use Framework-Provided Tools to Show the User Feedback
Update the Status Bar
What We’ve Learned
11. User Preferences
Tasks
Android
Write User Preferences
Read User Preferences
Work with User Preferences in a Multiple User Application
iOS
Write User Preferences
Read User Preferences
Work with User Preferences in a Multiple User Application
What We’ve Learned
12. Serialization and Transports
Tasks
Android
Serialize and Deserialize an Object Instance
iOS
Serialize and Deserialize an Object Instance
iOS Notes
What We’ve Learned
13. Extensions
Tasks
Android
Add Functionality to Existing APIs
iOS
Add Functionality to Existing APIs
What We’ve Learned
14. Testing
Tasks
Android
Set Up and Run Unit Tests
Set Up and Run Integration Tests
iOS
Set Up and Run Unit Tests
What We’ve Learned
II. Sample App
15. Welcome and Environment Setup
Comparing Native Development to Cross-Platform Tools
Web-Based
Other
Environment Setup
Android Setup
iOS Setup
What We’ve Learned
16. Building an App
Creating a New Project
Android Studio
Xcode
App Architecture
Building Our First Screen
Android
iOS
What We’ve Learned
17. Listing Data in the App
Sprucing Up Views
Android
iOS
Adding a Button
iOS
Lists, Lists, and More Lists!
Add a New Catalog View
Wiring Up the Button
Books
Populating the List View
Android
iOS
What We’ve Learned
18. Modeling Our Library
Dynamic Data in List Views
Android
iOS
It’s Time for Our Model Objects to Get Real
JSON for One, JSON for All
Switch the Model Layer to JSON
Android
iOS
What We’ve Learned
19. And Yet, We Persisted
Detailing Our Books
Android
iOS
Saving Books for Later
Android
iOS
Storing Books for Later
Android
iOS
Saving Books
Android
What We’ve Learned
20. Networking and Our App
Searching the World
Android
iOS
Building a Search Endpoint
Installing Node and Express
Locations JSON File
Calling Our Service
Android
iOS
What We’ve Learned
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
Next
Next Chapter
Native Mobile Development
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