I'm afraid this is one of the problems with this book, as it is a year or so old, Android has moved on considerably, showDialog(0) was depreciated in API13, aka 3, or Honeycomb.
Not to worry though. I assume that you can't get the program to compile, before running in the Emulator ? If so, do this -
Where the error occurs in the code, when you hold the mouse over the error, a little box should pop-up, press F2 to keep the box there if you need to, and click on option that says something like "suppress warning". It will add some code to the listing that will allow it to compile.
If you still have problems running the program in the emulator, change your target API to 12.
|