|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.app.Service
de.unikassel.android.sdcframework.app.AbstractSDCServiceImpl
public abstract class AbstractSDCServiceImpl
Abstract base class for the sticky SDCF service. Internally it is delegating to a management component, which is supervising all the other service components.
Field Summary | |
---|---|
private ISDCService.Stub |
binder
the service binder |
private int |
NOTIFICATION
the notification identifier |
private ServiceManager |
servicManager
the service manager maintaining the framework components |
Fields inherited from class android.app.Service |
---|
START_CONTINUATION_MASK, START_FLAG_REDELIVERY, START_FLAG_RETRY, START_NOT_STICKY, START_REDELIVER_INTENT, START_STICKY, START_STICKY_COMPATIBILITY |
Fields inherited from interface de.unikassel.android.sdcframework.app.facade.SDCService |
---|
ACTION, INTENT_NAME_RUNNING_FLAG |
Constructor Summary | |
---|---|
AbstractSDCServiceImpl()
Constructor |
Method Summary | |
---|---|
private void |
broadcastRunningState(boolean isRunning)
Method to broadcast the service running state change |
PowerManager |
getPowerManager()
Getter for the service context power manager |
ServiceManager |
getServiceManager()
Getter for the service manager |
private void |
initializeService()
main initialization method |
IBinder |
onBind(Intent intent)
|
void |
onCreate()
|
void |
onDestroy()
|
int |
onStartCommand(Intent intent,
int flags,
int startId)
|
void |
setServiceManager(ServiceManager serviceManager)
Setter for the service manager |
private void |
shutDownService()
shutdown and clean up method for the service |
private void |
startForeground(String text)
Does start the process in foreground and create and display a notification for the user for quick access to the controlling activity. |
Methods inherited from class android.app.Service |
---|
dump, finalize, getApplication, onConfigurationChanged, onLowMemory, onRebind, onStart, onUnbind, setForeground, startForeground, stopForeground, stopSelf, stopSelf, stopSelfResult |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.unikassel.android.sdcframework.app.facade.SDCService |
---|
getApplicationContext, getControlActivityClass, stopSelf |
Methods inherited from interface android.content.ComponentCallbacks |
---|
onConfigurationChanged, onLowMemory |
Field Detail |
---|
private final ISDCService.Stub binder
private int NOTIFICATION
private ServiceManager servicManager
Constructor Detail |
---|
public AbstractSDCServiceImpl()
Method Detail |
---|
public ServiceManager getServiceManager()
SDCService
getServiceManager
in interface SDCService
public void setServiceManager(ServiceManager serviceManager)
SDCService
setServiceManager
in interface SDCService
serviceManager
- the service manager to setpublic final IBinder onBind(Intent intent)
onBind
in class Service
public void onCreate()
onCreate
in class Service
public void onDestroy()
onDestroy
in class Service
public int onStartCommand(Intent intent, int flags, int startId)
onStartCommand
in class Service
private final void initializeService()
private final void shutDownService()
private final void startForeground(String text)
public final PowerManager getPowerManager()
SDCService
getPowerManager
in interface SDCService
private final void broadcastRunningState(boolean isRunning)
isRunning
- flag for the service running state to broadcast
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |