com.stringsandints.inventium.khlrooster.services
Class SilenceService

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

public class SilenceService
extends Service

The SilenceService class turns the device's sound on and off right before and after classes.


Field Summary
(package private)  AudioManager manager
           
 
Constructor Summary
SilenceService()
           
 
Method Summary
private  void handleEvent(Intent intent)
          This method sets the RingerMode to VIBRATE during classes and back to normal afterwards.
 IBinder onBind(Intent intent)
           
 void onCreate()
           
 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

manager

AudioManager manager
Constructor Detail

SilenceService

public SilenceService()
Method Detail

onCreate

public void onCreate()

onStart

public void onStart(Intent intent,
                    int startId)

onStartCommand

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

handleEvent

private void handleEvent(Intent intent)
This method sets the RingerMode to VIBRATE during classes and back to normal afterwards.

Parameters:
intent -

onBind

public IBinder onBind(Intent intent)