Wrox Programmer Forums
|
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2012, 11:27 AM
Registered User
 
Join Date: Jun 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default MyBrowserActivity.java

According to my compiler, the line of code that is second from the bottom should be:

WebView webView = (WebView) findViewById(R.id.WebViewer01);

The code in the book is:

WebView webView = (WebView) findViewById(R.id.WebView01);

Has anybody else discovered this?
 
Old July 10th, 2012, 09:03 PM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Check browser.xml

It should match what you type in the XML file for "@+id/WebView01" Bet you have WebViewer01 there.

It's a pain to get all the typing correct. I still can't get that excersize to work right Argh.....
 
Old July 10th, 2012, 09:19 PM
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by norm View Post
I still can't get that excersize to work right Argh.....
Well as soon as I post, I figured it out. Had to look at the downloaded code, but ended up using:

Intent i = new Intent("android.intent.action.VIEW");
i.setData(Uri.parse("http://www.amazon.com"));

in the onClickLaunchMyBrowser method





Similar Threads
Thread Thread Starter Forum Replies Last Post
To call a java class from javascipt and pass a variable to the java servelet too prithagupta Java Basics 4 March 9th, 2013 08:39 AM
java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java Hot Nixxxter Java Basics 6 January 11th, 2012 12:36 PM
Java SE Development Kit and Eclipse IDE for Java EE? Droider BOOK: Beginning Android Application Development 1 October 7th, 2011 08:42 AM
Chapter 2 - MyBrowserActivity UnknownFear BOOK: Beginning Android Application Development 3 October 4th, 2011 03:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.