View
.
TextView
ToggleButton
SeekBar
RatingBar
(crashes my app: “Unfortunately, Widgets has stopped.”)
Not enough time to display Toast with every change of the
SeekBar
’s
value.
Inside the
onClick
method of a listener, we must say
WidgetsActivity.this
Activity
object.
If we had said
this
,
we would have referred to the listener object.
WidgetsActivity.java
R.java
main.xml
.
Don’t have to specify the alpha level in
main.xml
When you touch the top two
RatingBar
s
in
ApiDemos
,
it says “Unfortunately, ApiDemos has stopped.”
See the
java.lang.NullPointerException
in the LogCat pane of the Debug perspective of Eclipse.