You don't need to set the onClickListener for the button when you're
specifying an onClick in the XML layout. That
android:onClick="viBrate" will cause it to call the viBrate function
in your activity. It passes the calling view as an argument so you
just need a function like this to receive it:
You are not initializing your object Vibrator.
This is really like java 101. You should start by learning java.
Otherwise it's going to be very difficult for you.
http://download.oracle.com/javase/tutorial/tutorialLearningPaths.html
Good luck.
Yahel
--
You received this message because you ar
2 matches
Mail list logo