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 March 18th, 2010, 04:24 PM
Registered User
 
Join Date: Mar 2010
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 3 To do list question

I downloaded the source code from the website and created the corresponding avd to run the code. Everything compiled and ran just fine but I can't add items to the to-do list. I clicked menu on the stimulator and clicked "Add Item" but then after i typed whatever I wanted to add, nothing happened from there onward. I clicked enter but that only creates a new line of text. I wonder whatI should do to actually add a new to-do item to the list.
 
Old March 19th, 2010, 01:15 AM
Authorized User
 
Join Date: Mar 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

click the little pill looking button that is surrounded by the arrows.
The Following User Says Thank You to EricTapia For This Useful Post:
ttdevelop (March 19th, 2010)
 
Old March 19th, 2010, 05:13 AM
Registered User
 
Join Date: Mar 2010
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by EricTapia View Post
click the little pill looking button that is surrounded by the arrows.
Thank you, problem solved for now.
Btw, is it possible to change the key for the input to Enter key though?
 
Old March 19th, 2010, 02:29 PM
Authorized User
 
Join Date: Mar 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes its possible. You change the key listener code.

from
Code:
if(keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
to
Code:
if(keyCode == KeyEvent.KEYCODE_ENTER) {
 
Old March 29th, 2010, 11:18 PM
Registered User
 
Join Date: Mar 2010
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I changed the code to
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER)

But then the app quits unexpectedly. Do you know why that happened?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question for List 8-30 chuxu BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 2 July 2nd, 2010 01:31 PM
Dropdown list question dcct84 C# 4 October 2nd, 2007 02:48 PM
Search / List Box Question. sprocket Access 2 July 13th, 2006 01:28 PM
Dropdown list question NeoDelphi C# 3 December 25th, 2004 12:46 AM
Question about List Box MouseDown event Utpal VB.NET 0 August 4th, 2003 03:11 AM





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