Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android 2 Application Development
Password Reminder
Register
Register | 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 June 1st, 2010, 05:44 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Post unable to get Chapter 4 To do list 2 to work

Hello,

When I install and click the installed application - I get an screen that does not look like Figure 4 -10 - what I see is only the title string "To Do List". But then when I enter a piece of text and hit enter - a whit eband appears at the bottom - I guess it is the layout for Add New Item and Remove Item.

Here is the logcat with my comments starting with '##'
##################
## run adb install chap42-debug.apk
##################
D/AndroidRuntime( 221):
D/AndroidRuntime( 221): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 221): CheckJNI is ON
D/AndroidRuntime( 221): --- registering native functions ---
D/ddm-heap( 221): Got feature list request
D/PackageParser( 56): Scanning package: /data/app/vmdl29909.tmp
D/dalvikvm( 56): GC freed 12834 objects / 775424 bytes in 157ms
I/PackageManager( 56): /data/app/vmdl29909.tmp changed; unpacking
D/installd( 32): DexInv: --- BEGIN '/data/app/vmdl29909.tmp' ---
D/dalvikvm( 227): DexOpt: load 86ms, verify 102ms, opt 3ms
D/installd( 32): DexInv: --- END '/data/app/vmdl29909.tmp' (success) ---
I/installd( 32): move /data/dalvik-cache/data@app@vmdl29909.tmp@classes.dex -> /data/dalvik-cache/
data@app@com.paad.todolist2.apk@classes.dex
D/PackageManager( 56): New package installed in /data/app/com.paad.todolist2.apk
D/AndroidRuntime( 221): Shutting down VM
D/dalvikvm( 221): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 221): DestroyJavaVM shutting VM down
D/dalvikvm( 221): HeapWorker thread shutting down
D/dalvikvm( 221): HeapWorker thread has shut down
D/jdwp ( 221): JDWP shutting down net...
I/dalvikvm( 221): Debugger has detached; object registry had 1 entries
D/dalvikvm( 221): VM cleaning up
E/AndroidRuntime( 221): ERROR: thread attach failed
D/dalvikvm( 221): LinearAlloc 0x0 used 623012 of 5242880 (11%)
W/ResourceType( 56): Resources don't contain package for resource number 0x7f0700e5
W/ResourceType( 56): Resources don't contain package for resource number 0x7f020031
W/ResourceType( 56): Resources don't contain package for resource number 0x7f020030
W/ResourceType( 56): Resources don't contain package for resource number 0x7f050000
W/ResourceType( 56): Resources don't contain package for resource number 0x7f060000
I/ActivityManager( 56): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerRe
ceiver: pid=231 uid=10003 gids={}
W/ResourceType( 56): Resources don't contain package for resource number 0x7f060001
D/ddm-heap( 231): Got feature list request
D/dalvikvm( 56): GC freed 5866 objects / 409856 bytes in 173ms

##################
## At this point shows up in the list of applications
## now double click on the application icon
##################

I/ActivityManager( 56): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.in
tent.category.LAUNCHER] flg=0x10200000 cmp=com.paad.todolist2/.ToDoList }
I/ActivityManager( 56): Start proc com.paad.todolist2 for activity com.paad.todolist2/.ToDoList: p
id=237 uid=10028 gids={}
D/ddm-heap( 237): Got feature list request
I/ActivityManager( 56): Displayed activity com.paad.todolist2/.ToDoList: 1431 ms (total 1431 ms)
D/dalvikvm( 103): GC freed 1461 objects / 83432 bytes in 214ms

##################
## now enter text in the application and hit enter
##################

D/ViewFlipper( 97): updateRunning() mVisible=false, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=false, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
D/ViewFlipper( 97): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false

##################
## now the white bar appears at the bottom of the display area - it is modal - for example if I click on Home and then settings to uninstall this application this bar is stacked in from of the OK | cancel button
##################

BTW, the Chapter 4 to do list works partially- I do not see the"Paper" in the display. I am more worried about 4.2 because I am not able to get it working.

Please help - if you can point to any other links (or pages int he book) that would be helpful too.

Thank you

Abhi
Reply With Quote
  #2 (permalink)  
Old June 2nd, 2010, 09:31 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default more info...

In the process of debugging I realized that when registerForContextMenu(myListview) is called in the code - onCreateContextMenu does not get called.
Can anyone please shed some light - why is likely to happen?

Thank you
Reply With Quote
  #3 (permalink)  
Old June 2nd, 2010, 09:38 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Post fixed ...

The AVD was not set properly - so the pressing the hardware menu button was not working. Now that AVD is set properly it works ...
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
Unable to make htaccess work. markdawkins BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 April 17th, 2011 02:31 PM
Unable to view data in CSS Properties list bill.mccullen BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 August 29th, 2009 10:44 AM
Unable to run Chapter 2 Example tkachuk BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 6 August 2nd, 2009 11:37 PM
Unable to display data using drop down list hayley Classic ASP Databases 2 January 18th, 2005 05:36 AM



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


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