Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 10th, 2012, 11:27 AM
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Location: San Antonio, Texas
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?
Reply With Quote
  #2 (permalink)  
Old July 10th, 2012, 09:03 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.....
Reply With Quote
  #3 (permalink)  
Old July 10th, 2012, 09:19 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:19 AM.


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