What does the logcat info say about the exception? ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ----------------------------------------------------------------------
On Sun, Dec 6, 2009 at 2:54 AM, gilmad <[email protected]> wrote: > hi everybody, > I'm new here... > > I've tried to access the vibration but ended up with a runtime error. > > here is what I did: > > these are my imports: > > import android.app.Activity; > import android.content.Context; > import android.os.Bundle; > import android.os.Vibrator; > import android.widget.TextView; > > this is how I use the vibrate: > > Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); > v.vibrate(1000); > > I also added the next permission in the manifest: > <uses-permission android:name="android.permission.VIBRATE"/> > > anyone got an idea on whats wrong with that? > thanks... > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

