Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 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.
Reply With Quote
  #2 (permalink)  
Old March 19th, 2010, 01:15 AM
Authorized User
 
Join Date: Mar 2010
Location: Baldwin Park, CA
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

click the little pill looking button that is surrounded by the arrows.
Reply With Quote
The Following User Says Thank You to EricTapia For This Useful Post:
ttdevelop (March 19th, 2010)
  #3 (permalink)  
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?
Reply With Quote
  #4 (permalink)  
Old March 19th, 2010, 02:29 PM
Authorized User
 
Join Date: Mar 2010
Location: Baldwin Park, CA
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) {
Reply With Quote
  #5 (permalink)  
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?
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
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



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


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