|
||||||||||
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.view.ContextThemeWrapper
android.app.Activity
de.unikassel.android.sdcframework.app.AbstractServiceControlActivity
public abstract class AbstractServiceControlActivity
Base class for service control activities.
Field Summary | |
---|---|
private String |
action
The service action name |
private static String |
BAK_EXTENSION
Extension for file backups. |
private ApplicationPreferenceManager |
prefManager
The preference manager |
private static int |
SELECT_EXT_DEFAULTS_FILE
File selection dialog identifier for external defaults file selection. |
private static int |
SELECT_EXT_RSA_PUBKEY_FILE
File selection dialog identifier for pub key file selection. |
private Class<?> |
serviceClass
The service class name |
private ServiceRunningStateListener |
serviceRunningStateListner
The service running state listener |
private static String |
TITLE_RSA_KEY_SELECTION
Title for RSA key file selection. |
private static String |
TITLE_XML_CONFIG_FILE_SELECTION
Title for XML configuration key file selection. |
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Constructor Summary | |
---|---|
AbstractServiceControlActivity(Class<?> serviceClass)
Constructor |
Method Summary | |
---|---|
ApplicationPreferenceManager |
getPrefManager()
Getter for preference manager |
Class<?> |
getServiceClass()
Getter for the service class |
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
|
boolean |
onCreateOptionsMenu(Menu menu)
|
protected void |
onDestroy()
|
private boolean |
onLoadDefaults()
Method to handle the selection of "load external defaults" in the option menu. |
private boolean |
onLoadRSAPublicKey()
Method to handle the selection of "load external defaults" in the option menu |
boolean |
onOptionsItemSelected(MenuItem item)
|
protected void |
onPause()
|
protected boolean |
onPreferences()
Method to handle for selection of "preferences" in the option menu |
boolean |
onPrepareOptionsMenu(Menu menu)
|
protected void |
onResume()
|
protected abstract void |
onServiceRunningStateChanged(boolean isRunning)
Handler to react on service running state changes. |
Methods inherited from class android.view.ContextThemeWrapper |
---|
attachBaseContext, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Class<?> serviceClass
private final String action
private static final String BAK_EXTENSION
private static final String TITLE_RSA_KEY_SELECTION
private static final String TITLE_XML_CONFIG_FILE_SELECTION
private static final int SELECT_EXT_RSA_PUBKEY_FILE
private static final int SELECT_EXT_DEFAULTS_FILE
private final ServiceRunningStateListener serviceRunningStateListner
private final ApplicationPreferenceManager prefManager
Constructor Detail |
---|
public AbstractServiceControlActivity(Class<?> serviceClass)
serviceClass
- Method Detail |
---|
public final Class<?> getServiceClass()
public final ApplicationPreferenceManager getPrefManager()
private final boolean onLoadRSAPublicKey()
private final boolean onLoadDefaults()
protected boolean onPreferences()
protected void onResume()
onResume
in class Activity
protected void onPause()
onPause
in class Activity
protected void onDestroy()
onDestroy
in class Activity
public boolean onCreateOptionsMenu(Menu menu)
onCreateOptionsMenu
in class Activity
public boolean onPrepareOptionsMenu(Menu menu)
onPrepareOptionsMenu
in class Activity
public boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected
in class Activity
protected void onActivityResult(int requestCode, int resultCode, Intent data)
onActivityResult
in class Activity
protected abstract void onServiceRunningStateChanged(boolean isRunning)
isRunning
- running state flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |