AndroidProgramming

Thursday, 17 March 2016

Vibrate onclick

Vibrator vibe = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);

if(l2 >= l1) {
    insertactone.setBackgroundColor(Color.RED);
    vibe.vibrate(100);
}
Posted by Unknown at 06:13
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2017 (15)
    • ►  October (4)
    • ►  September (5)
    • ►  August (6)
  • ▼  2016 (31)
    • ►  May (7)
    • ▼  March (24)
      • How to create a Calculator App for Android
      • Android Material Design
      • Driving distance and travel time duration between ...
      • Vibrate onclick
      • disable Touch Sounds on Activity start ?
      • play sound when activity starts
      • Android - XML Parser
      • Notifications
      • Android Camera
      • Android Wifi
      • Android Bluetooth Tutorial Bluetooth is a way t...
      • Create A Simple Listview
      • Create Repeating Alarm Start After Each 2 Minutes
      • Android Service  Android service is a component...
      • Intent Android Intent is the message that is pas...
      • Google Maps Android API V2 showing current locat...
      • Android Widgets There are given a lot of an...
      • Dalvik Virtual Machine | DVM As we know t...
      • Android Activity Lifecycle Android Activity L...
      • Android Hide Title Bar  @Override       prot...
      • Android Screen Orientation Go AndroidManifest...
      • AndroidManifest.xml file in android The Andro...
      • Android Core Concepts Apps and APK Files A...
      • About Android Programming
Simple theme. Powered by Blogger.