Android Programming The Big Nerd Ranch Guide, 3rd Edition
Resolving an Implicit Intent 457 In CriminalIntent, you used an implicit intent to send a crime report. You presented an activit ...
Chapter 24 More About Intents and Tasks 458 Now define a ViewHolder that displays an activity’s label. Store the activity’s Res ...
Resolving an Implicit Intent 459 Next add a RecyclerView.Adapter implementation. Listing 24.6 RecyclerView.Adapter implementati ...
Chapter 24 More About Intents and Tasks 460 Run NerdLauncher, and you will see a RecyclerView populated with activity labels (F ...
Creating Explicit Intents at Runtime 461 Listing 24.8 Launching pressed activity (NerdLauncherFragment.java) private class Acti ...
Chapter 24 More About Intents and Tasks 462 Run NerdLauncher and launch some apps. Tasks and the Back Stack Android uses tasks ...
Switching between tasks 463 Try out the overview screen on your device or emulator. First, launch CriminalIntent from the Home s ...
Chapter 24 More About Intents and Tasks 464 Starting a new task Sometimes, when you start an activity, you want the activity ad ...
Starting a new task 465 This will not do. Instead, you want NerdLauncher to start activities in new tasks (Figure 24.10). That w ...
Chapter 24 More About Intents and Tasks 466 Clear the tasks listed in your overview screen. Run NerdLauncher and start Criminal ...
Using NerdLauncher as a Home Screen 467 Listing 24.10 Changing NerdLauncherActivity’s categories (AndroidManifest.xml) By ...
Chapter 24 More About Intents and Tasks 468 Challenge: Icons You used ResolveInfo.loadLabel(PackageManager) in this chapter to ...
For the More Curious: Processes vs Tasks 469 However, the contact list activity instance is actually created in the memory space ...
Chapter 24 More About Intents and Tasks 470 When you do this, new contact list activity and contact details instances will be c ...
For the More Curious: Concurrent Documents 471 For the More Curious: Concurrent Documents If you are running your apps on a Loll ...
Chapter 24 More About Intents and Tasks 472 A prime example of concurrent documents in practice is the Google Drive app. You ca ...
473 25. HTTP and Background Tasks The apps that dominate the brains of users are networked apps. Those people fiddling with thei ...
Chapter 25 HTTP and Background Tasks 474 (We have added a filter to our PhotoGallery implementation to show only photos listed ...
Creating PhotoGallery 475 Creating PhotoGallery Create a new Android application project. Configure the app as shown in Figure 2 ...
Chapter 25 HTTP and Background Tasks 476 In PhotoGalleryActivity.java, set up PhotoGalleryActivity as a SingleFragmentActivity ...
«
20
21
22
23
24
25
26
27
28
29
»
Free download pdf