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 February 22nd, 2013, 09:49 AM
Registered User
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter2 - Showdialog

can somebody please explain to how to resolve this problem, I can't seem to find an answer. The problem is whether I type in the example or use the example download I get the following error? I'm using Eclipse interface.

private void onClick() {
showDialog(0); (With this line struck through)

The warning reads "The method shows Dialog(int) from the type Activity is deprecated"

If anybody can help that would be great, then I can continue.

Last edited by mixieh; February 23rd, 2013 at 10:23 AM..
 
Old February 24th, 2013, 07:08 PM
Registered User
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm afraid this is one of the problems with this book, as it is a year or so old, Android has moved on considerably, showDialog(0) was depreciated in API13, aka 3, or Honeycomb.

Not to worry though. I assume that you can't get the program to compile, before running in the Emulator ? If so, do this -

Where the error occurs in the code, when you hold the mouse over the error, a little box should pop-up, press F2 to keep the box there if you need to, and click on option that says something like "suppress warning". It will add some code to the listing that will allow it to compile.

If you still have problems running the program in the emulator, change your target API to 12.
 
Old February 25th, 2013, 02:21 PM
Registered User
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thank Durge

Had to change API in the end and finally got it working.

Make me wonder if I should continue with this book or look for a book that is more up to date.

Thanks again.

 
Old February 25th, 2013, 08:01 PM
Registered User
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mixieh View Post
Many thank Durge

Had to change API in the end and finally got it working.

Make me wonder if I should continue with this book or look for a book that is more up to date.

Thanks again.

No Problem

I had no end of problems at the beginning, but I kept going with the book for a while, and then got enough to carry on without it. There's plenty of information on the Internet if you get stuck.
 
Old March 17th, 2013, 02:25 PM
Registered User
 
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outdated book - want updated book on-line!

Quote:
Originally Posted by Durge View Post
No Problem

I had no end of problems at the beginning, but I kept going with the book for a while, and then got enough to carry on without it. There's plenty of information on the Internet if you get stuck.
I have the same problem. I paid $39 for this. These days that is the cost of perpetual license with free updates for a very well developed and useful software. Now I cannot update the book, can I? I believe Wrox should post updated book in PDF (not simply pages) on the website that I can download. If not I am not interested in buying books. I can learn from the free tutorials and YouTube!

Wrox, can you please respond?





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with ShowDialog() mori .NET Framework 2.0 0 August 21st, 2008 07:19 AM
Problem with form.ShowDialog() karveajit C# 1 October 6th, 2007 04:35 PM
Alternative of Form.ShowDialog(this) for .NET CF? arif_1947 VS.NET 2002/2003 0 November 9th, 2004 05:12 AM
Showdialog Help!!! KL VS.NET 2002/2003 1 December 15th, 2003 05:22 PM





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