com.stringsandints.inventium.khlrooster.services
Class VibrateBeforeLessonService

java.lang.Object
  extended by Service
      extended by com.stringsandints.inventium.khlrooster.services.VibrateBeforeLessonService

public class VibrateBeforeLessonService
extends Service

This service is used to vibrate the phone before the start of a lesson.


Field Summary
(package private)  Vibrator vibrator
           
 
Constructor Summary
VibrateBeforeLessonService()
           
 
Method Summary
private  void handleEvent()
          This method is called when the service is started.
 IBinder onBind(Intent arg0)
           
 void onCreate()
          This method is called when the service is created.
 void onStart(Intent intent, int startId)
           
 int onStartCommand(Intent intent, int flags, int startId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vibrator

Vibrator vibrator
Constructor Detail

VibrateBeforeLessonService

public VibrateBeforeLessonService()
Method Detail

onBind

public IBinder onBind(Intent arg0)

onCreate

public void onCreate()
This method is called when the service is created. It gets the VIBRATOR_SERVICE from the device.


onStart

public void onStart(Intent intent,
                    int startId)

onStartCommand

public int onStartCommand(Intent intent,
                          int flags,
                          int startId)

handleEvent

private void handleEvent()
This method is called when the service is started. It vibrates the phone in a predefined pattern.