Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Android 4 Application Development
Password Reminder
| 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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..
Reply With Quote

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
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

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

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