Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
Sending a crime report You include the text of the report and the string for the subject of the report as extras. Note that thes ...
Chapter 15 Implicit Intents In CrimeFragment.java, create a chooser to display the activities that respond to your implicit int ...
Asking Android for a contact Asking Android for a contact Now you are going to create another implicit intent that enables users ...
Chapter 15 Implicit Intents Run CriminalIntent and press the CHOOSE SUSPECT button. You should see a list of contacts (Figure 1 ...
Asking Android for a contact Listing 15.13 Pulling contact name out (CrimeFragment.java) @Override public void onActivityResult ...
Chapter 15 Implicit Intents Contacts permissions How are you getting permission to read from the contacts database? The contact ...
Checking for responding activities Listing 15.15 Adding dummy code to verify filter (CrimeFragment.java) public View onCreateVi ...
Chapter 15 Implicit Intents Challenge: ShareCompat Your first challenge is an easy one. Android’s support library provides a cl ...
16. Taking Pictures with Intents Now that you know how to work with implicit intents, you can document your crimes in even more ...
Chapter 16 Taking Pictures with Intents Dedicating an entire row to a thumbnail and a button would make your app look clunky an ...
A Place for Your Photo Figure 16.3 Title layout (res/layout/fragment_crime.xml) Run CriminalIntent, and you should see your new ...
Chapter 16 Taking Pictures with Intents File Storage Your photo needs more than a place on the screen. Full-size pictures are t ...
Using FileProvider Using FileProvider When all you need to do is receive a file from another application, implementing an entire ...
Chapter 16 Taking Pictures with Intents Listing 16.4 Hooking up the paths description (AndroidManifest.xml) <provider andro ...
Using a Camera Intent Using a Camera Intent The next step is to actually take the picture. This is the easy part: You get to use ...
Chapter 16 Taking Pictures with Intents Listing 16.8 Firing a camera intent (CrimeFragment.java) private static final int REQU ...
Scaling and Displaying Bitmaps Figure 16.4 [Insert your camera app here] Scaling and Displaying Bitmaps With that, you are succ ...
Chapter 16 Taking Pictures with Intents Listing 16.9 Creating getScaledBitmap(...) (PictureUtils.java) public class PictureUti ...
Scaling and Displaying Bitmaps Next, to load this Bitmap into your ImageView, add a method to CrimeFragment to update mPhotoView ...
Chapter 16 Taking Pictures with Intents Now that the camera is done writing to your file, you can revoke the permission, closin ...
«
12
13
14
15
16
17
18
19
20
21
»
Free download pdf