Wrox Programmer Forums
| 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 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 14th, 2013, 08:17 AM
Authorized User
Points: 65, Level: 1
Points: 65, Level: 1 Points: 65, Level: 1 Points: 65, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2012
Posts: 15
Thanks: 2
Thanked 1 Time in 1 Post
Default P149 Overriding Activity Tutorial

OK, a bit of a weird one but it happened to me so it may happen to you...

I couldn't get this tutorial to work on my emulator, there was no response to any clicking of the DPAD as proposed in the tutorial. Eventually I discovered that the DPAD was not enabled in the AVD. Duhhh, don't know why it took me so long to find this out as it was clearly written right next to the DPAD on the emulator.

Anyway, it appears that what gets enabled in your emulator depends on the basic phone that each emulator is modelled upon.

The fix is to find your emulator's config.ini file, in my case this was here - C:\Users\MyName\.android\avd\YourEmulator\ and, by changing the hw.dPad=no entry to hw.dPad=yes my problem was fixed.

I know that this is unlikely to have affected many of you but worth noting and offers some extra homework on understanding what else is in your AVDs config.ini files.

A further bit of bug fixing, 2 points...
1) There's a missing closing curly brace } at the end of the sample code on P150 and,
2) The author has addressed an issue with the DPAD_CENTER button at the foot of P151 but also note that the DPAD_CENTER Toast message only gets displayed when nothing is in focus i.e. neither the EditText field nor either of the BUTTONs.

Last edited by wolfenr; December 14th, 2013 at 08:46 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Native Activity instead of a Java activity jblack BOOK: Game and Graphics Programming for iOS and Android with OpenGL ES 2.0 0 September 18th, 2013 10:05 PM
overriding management pages binaryspirit BOOK: Beginning ASP.NET 4 : in C# and VB 4 May 2nd, 2012 03:46 PM
Overloading Overriding arv1980 VS.NET 2002/2003 2 January 22nd, 2006 12:55 AM
Overriding arv1980 VS.NET 2002/2003 0 January 21st, 2006 09:58 PM
Overriding the ispostback method Indo77 ASP.NET 1.0 and 1.1 Basics 3 April 6th, 2005 02:50 PM

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