Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 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 April 20th, 2011, 05:15 PM
Registered User
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DPAD Center button

I'm working on the todo list application in chapter 2. I have it running in the emulator. When I click the center button (amid the arrow buttons), however, the item in the text field is not being added to the list. The debugger does not show that the "onKey" method is being executed. Is the oval button amid the arrows not the correct DPAD_CENTER button?
 
Old April 24th, 2011, 11:25 PM
Registered User
 
Join Date: Apr 2011
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Check to make sure that the emulator you are using has d-pad functionality.

Open AVD manager, choose the emulator, hit Edit, and check Hardware.
 
Old June 15th, 2011, 09:24 PM
Registered User
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

McRae is right, you should give your ADV DPad support, just as follows:
Open your AVD Manager -> Choose a AVD and click Edit... -> in Hardware frame click New... -> and select DPad Support -> OK
------------------------------------
Good luck!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Center Text within Label testsubject Visual Studio 2005 5 October 15th, 2011 12:59 PM
EVO has no dpad andyf98155 BOOK: Professional Android 2 Application Development 2 June 30th, 2010 05:55 PM
How to Center Windows forms? chobo2 C# 1 September 11th, 2008 05:20 PM
Center BrowseFolder form Michael Daly Access VBA 0 September 22nd, 2003 08:25 PM
align Center melvik C# 1 September 7th, 2003 04:50 AM





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