You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
Hi,
I am new to the Adroid platform. I've just downloaded the source code and tried to compile and run the sample application in the book. I've tried Chapter4_Sample_Todo_List sample code. I can import the project and built using eclipse fine , and the application is running on emulator . However,
my question is: you have created TodoListItemView class ( derived from TextView class) in the src directory, but it seemed TodoListItemView class never got instantiated while the application is running ? Is this the intended behavior ? I've used eclipse debugger to break at TodoListeItemView class init() function, but it seemed the debugger never stopped at init() at all ? Just to be sure that my debugger setting is working correctly, I've tried to set the break point at ToDoList activity class, and it works fine. My question is that if TodoListItemView class never got instantiated, then the onDraw() method that is supposed to do the new coloring of the listitem will not be called , isn't it ? Or maybe I am missing somthing here ? Please help . Here's my eclipse setting:
eclipse build: 20090619-0625
Java JDK v 1.6.0.140
JRE v 6
host platform os : windows xp