[android-developers] Re: Newbie help, please.

2011-02-03 Thread loweroctave
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:

[android-developers] Re: Newbie help, please.

2011-02-03 Thread Yahel
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