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@
[email protected]@classes.dex -> /data/dalvik-cache/
data@
[email protected]@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