Wrox Programmer Forums
BOOK: Beginning Android Programming with Android Studio, Fourth Edition
This is the forum to discuss the Wrox book Beginning Android Programming with Android Studio, Fourth Edition by Jerome F. DiMarzio; ISBN: 978-1-118-70559-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Programming with Android Studio, Fourth Edition 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 December 2nd, 2017, 05:51 AM
Registered User
Join Date: Dec 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Chapter 3: Dialog Window Code not working

I refer to the code example in the book, where the following line shows in red: The DialogActivity example includes the line:

Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar);
This line shows the toolbar identifier in red, because it is not recognized. All searches I have done have a simple restart or clean and rebuild as the solution, but not for my instance of this problem. I have tried about 4 suggested remedies already with no solution.

I only have about 1 month Java and Android studio experience, so please forgive me if this is a stupid or often asked question.

I suspect I need to add a reference to something in the project; that normally solves unknown identifiers, but I have no idea where or how, or even what they're really called, to find these references.

Last edited by brady@bradykelly.net; December 2nd, 2017 at 05:55 AM..
Old October 9th, 2018, 12:06 PM
Registered User
Join Date: Oct 2018
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Having the exact same issue

From what I'm reading through this forum, the code examples that are provided in the book are not complete. I tried downloading the example code and opening that as a project and it still gave me tons of errors. Once I got past all the gradle dependency issues and sdk tool version compatibility errors, all references for my imports, and "R", all give the error that the symbol cannot be resolved.

Very hard to learn when example are missing information and not straight forward.

Sorry this isn't an answer just a bump in the thread because no one seems to have the full answer on how to complete these examples.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2: Displaying a Dialog Window Using and Activity ethomps2 BOOK: Beginning Android Application Development 1 August 3rd, 2012 06:39 PM
Chapter 4: Split Window Code GeezerRoy BOOK: Beginning iPad Application Development 1 August 30th, 2010 08:47 AM
Communication between a parent window and a modal dialog window swizz182g Javascript 0 August 27th, 2009 04:41 PM
Working Code for Chapter 4 clomby BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 December 26th, 2005 06:44 AM
Modal dialog window eldanh ASP.NET 1.0 and 1.1 Basics 0 August 10th, 2004 02:07 PM

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