Android Programming The Big Nerd Ranch Guide, 3rd Edition
Sending a crime report 297 You include the text of the report and the string for the subject of the report as extras. Note that ...
Chapter 15 Implicit Intents 298 In CrimeFragment.java, create a chooser to display the activities that respond to your implicit ...
Asking Android for a contact 299 Asking Android for a contact Now you are going to create another implicit intent that enables u ...
Chapter 15 Implicit Intents 300 Run CriminalIntent and press the CHOOSE SUSPECT button. You should see a list of contacts (Figu ...
Asking Android for a contact 301 Listing 15.13 Pulling contact name out (CrimeFragment.java) @Override public void onActivityRe ...
Chapter 15 Implicit Intents 302 Contacts permissions How are you getting permission to read from the contacts database? The con ...
Checking for responding activities 303 Listing 15.15 Adding dummy code to verify filter (CrimeFragment.java) public View onCrea ...
Chapter 15 Implicit Intents 304 Challenge: ShareCompat Your first challenge is an easy one. Android’s support library provides ...
305 16. Taking Pictures with Intents Now that you know how to work with implicit intents, you can document your crimes in even m ...
Chapter 16 Taking Pictures with Intents 306 Dedicating an entire row to a thumbnail and a button would make your app look clunk ...
A Place for Your Photo 307 Figure 16.3 Title layout (res/layout/fragment_crime.xml) Run CriminalIntent, and you should see your ...
Chapter 16 Taking Pictures with Intents 308 File Storage Your photo needs more than a place on the screen. Full-size pictures a ...
Using FileProvider 309 Using FileProvider When all you need to do is receive a file from another application, implementing an en ...
Chapter 16 Taking Pictures with Intents 310 Listing 16.4 Hooking up the paths description (AndroidManifest.xml) <provider a ...
Using a Camera Intent 311 Using a Camera Intent The next step is to actually take the picture. This is the easy part: You get to ...
Chapter 16 Taking Pictures with Intents 312 Listing 16.8 Firing a camera intent (CrimeFragment.java) private static final int ...
Scaling and Displaying Bitmaps 313 Figure 16.4 [Insert your camera app here] Scaling and Displaying Bitmaps With that, you are ...
Chapter 16 Taking Pictures with Intents 314 Listing 16.9 Creating getScaledBitmap(...) (PictureUtils.java) public class Pictur ...
Scaling and Displaying Bitmaps 315 Next, to load this Bitmap into your ImageView, add a method to CrimeFragment to update mPhoto ...
Chapter 16 Taking Pictures with Intents 316 Now that the camera is done writing to your file, you can revoke the permission, cl ...
«
12
13
14
15
16
17
18
19
20
21
»
Free download pdf