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]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to