Android Programming The Big Nerd Ranch Guide, 3rd Edition
Receivers and Long-Running Tasks 577 Receivers and Long-Running Tasks So what do you do if you want a broadcast intent to kick o ...
Chapter 29 Broadcast Intents 578 For the More Curious: Local Events Broadcast intents allow you to propagate information across ...
Using RxJava 579 You specify how a subscriber should handle an event by implementing a method with the appropriate event type as ...
Chapter 29 Broadcast Intents 580 For the More Curious: Detecting the Visibility of Your Fragment When you reflect on your Photo ...
581 30. Browsing the Web and WebView Each photo you get from Flickr has a page associated with it. In this chapter, you are goin ...
Chapter 30 Browsing the Web and WebView 582 One Last Bit of Flickr Data For both ways, you need to get the URL for a photo’s Fl ...
One Last Bit of Flickr Data 583 Update GalleryItem to put this plan into action. Listing 30.1 Adding code for photo page (Galle ...
Chapter 30 Browsing the Web and WebView 584 Now change parseItems(...) to read in the owner attribute. Listing 30.2 Reading in ...
The Easy Way: Implicit Intents 585 The Easy Way: Implicit Intents You will browse to this URL first by using your old friend the ...
Chapter 30 Browsing the Web and WebView 586 That is it. Start up PhotoGallery and press on a photo. Your browser app should pop ...
The Harder Way: WebView 587 Listing 30.5 Setting up your web browser fragment (PhotoPageFragment.java) public class PhotoPageFr ...
Chapter 30 Browsing the Web and WebView 588 Switch up your code in PhotoGalleryFragment to launch your new activity instead of ...
The Harder Way: WebView 589 Finally, you need to provide a default implementation of a class called WebViewClient. WebViewClient ...
Chapter 30 Browsing the Web and WebView 590 Using WebChromeClient to spruce things up Since you are taking the time to create y ...
Using WebChromeClient to spruce things up 591 To hook up the ProgressBar, you will use the second callback on WebView: WebChrome ...
Chapter 30 Browsing the Web and WebView 592 Run PhotoGallery to test your changes. It should look like Figure 30.3. Figure 30.3 ...
Proper Rotation with WebView 593 Proper Rotation with WebView Try rotating your screen. While it does work correctly, you will n ...
Chapter 30 Browsing the Web and WebView 594 For the More Curious: Injecting JavaScript Objects In this chapter, you have seen h ...
For the More Curious: WebView Updates 595 For the More Curious: WebView Updates WebView underwent a serious overhaul with the re ...
Chapter 30 Browsing the Web and WebView 596 Challenge: Supporting Non-HTTP Links If you poke around within PhotoPageFragment’s ...
«
26
27
28
29
30
31
32
33
34
35
»
Free download pdf