The book is excellent in the design and explanation of creating an AlertDialog in Chapter 12. In Chapter 12 you mention “a bare AlertDialog will vanish if the device is rotated”. I am assuming you had some case(s) in mind.
Can you explain or give more detail on the vanishing AlertDialog case(s)?
Because, when I run API Demos from version 10 on my 2.3.4 and version 17 on my 4.2.x devices, none of the many examples of AltertDialog vanish if the device is rotated.
PS: Of course I sometimes see bad code on StackOverflow (and others) and complaints of vanishing AlertDialog. LOL