Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 February 22nd, 2013, 09:49 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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..
Reply With Quote
  #2 (permalink)  
Old February 24th, 2013, 07:08 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #3 (permalink)  
Old February 25th, 2013, 02:21 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.

Reply With Quote
  #4 (permalink)  
Old February 25th, 2013, 08:01 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #5 (permalink)  
Old March 17th, 2013, 02:25 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
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
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



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


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