Atjaunināt sīkdatņu piekrišanu

E-grāmata: Native Mobile Development: A Cross-Reference for iOS and Android

  • Formāts: 394 pages
  • Izdošanas datums: 12-Nov-2019
  • Izdevniecība: O'Reilly Media
  • Valoda: eng
  • ISBN-13: 9781492052845
  • Formāts - PDF+DRM
  • Cena: 38,89 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Šī e-grāmata paredzēta tikai personīgai lietošanai. E-grāmatas nav iespējams atgriezt un nauda par iegādātajām e-grāmatām netiek atmaksāta.
  • Formāts: 394 pages
  • Izdošanas datums: 12-Nov-2019
  • Izdevniecība: O'Reilly Media
  • Valoda: eng
  • ISBN-13: 9781492052845

DRM restrictions

  • Kopēšana (kopēt/ievietot):

    nav atļauts

  • Drukāšana:

    nav atļauts

  • Lietošana:

    Digitālo tiesību pārvaldība (Digital Rights Management (DRM))
    Izdevējs ir piegādājis šo grāmatu šifrētā veidā, kas nozīmē, ka jums ir jāinstalē bezmaksas programmatūra, lai to atbloķētu un lasītu. Lai lasītu šo e-grāmatu, jums ir jāizveido Adobe ID. Vairāk informācijas šeit. E-grāmatu var lasīt un lejupielādēt līdz 6 ierīcēm (vienam lietotājam ar vienu un to pašu Adobe ID).

    Nepieciešamā programmatūra
    Lai lasītu šo e-grāmatu mobilajā ierīcē (tālrunī vai planšetdatorā), jums būs jāinstalē šī bezmaksas lietotne: PocketBook Reader (iOS / Android)

    Lai lejupielādētu un lasītu šo e-grāmatu datorā vai Mac datorā, jums ir nepieciešamid Adobe Digital Editions (šī ir bezmaksas lietotne, kas īpaši izstrādāta e-grāmatām. Tā nav tas pats, kas Adobe Reader, kas, iespējams, jau ir jūsu datorā.)

    Jūs nevarat lasīt šo e-grāmatu, izmantojot Amazon Kindle.

Learn how to make mobile native app development easier. If your team frequently works with both iOS and Android&;or plans to transition from one to the other&;this hands-on guide shows you how to perform the most common development tasks in each platform. Want to learn how to make network connections in iOS? Or how to work with a database in Android? This book has you covered.

In the book&;s first part, authors Shaun Lewis and Mike Dunn from O&;Reilly&;s mobile engineering group provide a list of common, platform-agnostic tasks. The second part helps you create a bare-bones app in each platform, using the techniques from part one.

  • Common file and database operations
  • Network communication with remote APIs
  • Application lifecycle
  • Custom views and components
  • Threading and asynchronous work
  • Unit and integration tests
  • Configuring, building, and running an app on a device
Preface xi
Part I Tasks and Operations
A Note About the State of Mobile Development
1(2)
1 Ul Controllers
3(24)
Tasks
3(1)
Android
4(10)
How to Create Your App's Starting UI Controller
4(2)
How to Change the Active UI Controller
6(5)
Understanding the UI Controller Life Cycle
11(3)
iOS
14(11)
How to Create Your App's Starting UI Controller
14(3)
How to Change the Active UI Controller
17(4)
Understanding the Controller Life Cycle
21(4)
What We've Learned
25(2)
2 Views
27(18)
Tasks
27(1)
Android
28(6)
Create a New View
28(5)
Nesting Views
33(1)
Update a View's State
34(1)
iOS
34(9)
Create a New View
35(2)
Nesting Views
37(3)
Interface Builder to the Rescue
40(1)
Update a View's State
41(1)
Modifying Position
42(1)
What We've Learned
43(2)
3 Custom Components
45(14)
Tasks
45(1)
Android
45(8)
How to Create a Custom View
46(5)
How to Use a Custom View
51(2)
iOS
53(4)
How to Create a Custom View
53(2)
How to Use a Custom View
55(2)
What We've Learned
57(2)
4 User Input
59(18)
Tasks
59(1)
Android
60(10)
Receive and React to a Tap
60(5)
Receive and React to Keyboard Input
65(3)
Handle Compound Gestures
68(2)
iOS
70(6)
Receive and React to a Tap
70(2)
Receive and React to Keyboard Input
72(2)
Handle Compound Gestures
74(2)
What We've Learned
76(1)
5 Message Passing
77(22)
Tasks
77(1)
Android
77(8)
Use a Callback to React to an Operation
78(4)
Dispatch a Message to Any Interested Subscribers
82(2)
Listen for, and React to, Messages Dispatched Within a System
84(1)
iOS
85(12)
Use a Callback to React to an Operation
85(6)
Dispatch a Message to Any Interested Subscribers
91(2)
Listen for, and React to, Messages Dispatched Within a System
93(1)
Closures Instead of Selectors
94(1)
Stop Listening for Notifications
95(2)
What We've Learned
97(2)
6 Files
99(16)
Tasks
99(1)
Android
99(8)
Get Properties from the File Like Size or Last Modified Date
100(1)
Read and Write Data to and from a File
101(4)
Copy Data from One File to Another
105(2)
iOS
107(6)
Get Properties from the File Like Size or Last Modified Date
107(3)
Reading and Writing Data to and from a File
110(1)
Copy Data from One File to Another
111(2)
What We've Learned
113(2)
7 Persistence
115(14)
Tasks
115(1)
Android
115(7)
Establish a Database Connection
116(1)
Create a Database Table or Persistent Object
117(1)
Write Data to That Table or Persistent Object
118(1)
Read Data from That Table or Persistent Object
119(3)
iOS
122(6)
Set Up and Connect to a Persistence Layer
122(2)
Define and Create a Database Table or Persistent Object
124(1)
Write and Persist Data to SQLite
125(2)
Read Data from SQLite
127(1)
What We've Learned
128(1)
8 Concurrency (Multi-Threading)
129(34)
Tasks
129(1)
Android
129(10)
Perform a Task in a Background Thread
130(3)
Act on the Results of Work Performed in the Background Thread on the Main Thread
133(1)
Terminating a Thread
134(5)
iOS
139(3)
Perform a Task in a Background Thread
139(2)
Act on the Results of Work Performed in the Background Thread on the Main Thread
141(1)
What We've Learned
142(3)
9 Networking
145(1)
Tasks
145(1)
Android
146(4)
Read and Print a Text File on a Remote Server
146(1)
Make an HTTP POST Request
147(2)
Download a Binary File
149(1)
iOS
150(11)
Read and Print a Text File on a Remote Server
151(2)
Make an HTTP POST Request
153(3)
Download a Binary File
156(5)
What We've Learned
161(2)
10 User Feedback
163(10)
Tasks
163(1)
Android
163(5)
Use Framework-Provided Tools to Show the User Feedback
163(1)
Snackbar
164(2)
Update the Status Bar
166(2)
iOS
168(4)
Use Framework-Provided Tools to Show the User Feedback
168(2)
Update the Status Bar
170(2)
What We've Learned
172(1)
11 User Preferences
173(10)
Tasks
173(1)
Android
173(3)
Write User Preferences
174(1)
Read User Preferences
175(1)
Work with User Preferences in a Multiple User Application
175(1)
iOS
176(6)
Write User Preferences
176(3)
Read User Preferences
179(1)
Work with User Preferences in a Multiple User Application
180(2)
What We've Learned
182(1)
12 Serialization and Transports
183(16)
Tasks
183(1)
Android
183(7)
Serialize and Deserialize an Object Instance
183(7)
iOS
190(7)
Serialize and Deserialize an Object Instance
191(5)
iOS Notes
196(1)
What We've Learned
197(2)
13 Extensions
199(6)
Tasks
199(1)
Android
199(2)
Add Functionality to Existing APIs
199(2)
iOS
201(3)
Add Functionality to Existing APIs
201(3)
What We've Learned
204(1)
14 Testing
205(16)
Tasks
205(1)
Android
205(9)
Set Up and Run Unit Tests
209(3)
Set Up and Run Integration Tests
212(2)
iOS
214(3)
Set Up and Run Unit Tests
214(3)
What We've Learned
217(4)
Part II Sample App
15 Welcome and Environment Setup
221(10)
Comparing Native Development to Cross-Platform Tools
221(2)
Web-Based
222(1)
Other
222(1)
Environment Setup
223(6)
Android Setup
223(6)
iOS Setup
229(1)
What We've Learned
229(2)
16 Building an App
231(22)
Creating a New Project
232(10)
Android Studio
232(6)
Xcode
238(4)
App Architecture
242(1)
Building Our First Screen
243(8)
Android
243(3)
iOS
246(5)
What We've Learned
251(2)
17 Listing Data in the App
253(36)
Sprucing Up Views
253(16)
Android
254(10)
iOS
264(5)
Adding a Button
269(2)
iOS
270(1)
Lists, Lists, and More Lists!
271(3)
Add a New Catalog View
271(1)
Wiring Up the Button
272(2)
Books
274(3)
Populating the List View
277(10)
Android
277(7)
iOS
284(3)
What We've Learned
287(2)
18 Modeling Our Library
289(18)
Dynamic Data in List Views
289(7)
Android
290(3)
iOS
293(3)
It's Time for Our Model Objects to Get Real
296(1)
JSON for One, JSON for All
297(2)
Switch the Model Layer to JSON
299(7)
Android
299(6)
iOS
305(1)
What We've Learned
306(1)
19 And Yet, We Persisted
307(34)
Detailing Our Books
307(9)
Android
308(4)
iOS
312(4)
Saving Books for Later
316(3)
Android
317(1)
iOS
318(1)
Storing Books for Later
319(18)
Android
320(9)
iOS
329(8)
Saving Books
337(2)
Android
338(1)
What We've Learned
339(2)
20 Networking and Our App
341(24)
Searching the World
342(7)
Android
344(2)
iOS
346(3)
Building a Search Endpoint
349(2)
Installing Node and Express
349(2)
Locations JSON File
351(1)
Calling Our Service
351(13)
Android
352(3)
iOS
355(9)
What We've Learned
364(1)
Index 365
Shaun Lewis is Mobile Engineering Manager and former Lead Software Engineer for iOS at OReilly Media. The first book he read, How to Build a Website in a Weekend, transformed his life at the age of 15. He has over 12 years of professional experience and started developing iPhone apps when iOS was still called iPhone OS. He has worked with a number of Fortune 500 companies and occasionally speaks at events about Apple product development. Shaun lives in Ohio with his wife, two kids, and a drawer full of old smartphones. Mike Dunn is the Principal Mobile Engineer at OReilly Media, a recognized member of the AOSP community, and a dedicated contributor to the Android open source ecosystem, including the popular tiling image library, TileView. Hes contributed to Googles Closure library, and provided extensions for Googles next-gen Android media player, ExoPlayer. Mike has been programming professionally for about 15 years, and is continuing to study computer science in the master's program at Georgia Institute of Technology.