When I first created my GUI "buttons" I set OnClickListeners for each of them. When I ran the app on my actual phone, I didn't like how the action was performed when the user "releases" the button, instead of acting immeadiately upon pressing. So I switched to OnTouchListeners. The problem...
I set up my Vibrator:
final Vibrator vibe = (Vibrator) getSystemService
(Context.VIBRATOR_SERVICE);
but when I call:
vibe.vibrate(100);
my app force closes...
any ideas?
I'm just starting out, trying to get my feet wet...
Here's my xml:
<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.