|
||||||||||
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
org.android.activityminer.app.StarterActivity
public class StarterActivity
The starter activity.
Nested Class Summary | |
---|---|
private class |
StarterActivity.DBUpgradeTask
DB upgrade task to display a progress dialog |
Field Summary | |
---|---|
private AtomicBoolean |
hasToUpgradeDB
Flag if database must be upgraded |
private Intent |
intent
The intent to start the main activity |
private AtomicBoolean |
isNotFirstStart
Flag if application was already started before |
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 |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
StarterActivity()
|
Method Summary | |
---|---|
boolean |
doTestFrequency()
Does start a frequency test run. |
protected void |
doUpdateConfiguration()
Method for configuration updates after database imports |
protected boolean |
doUpgradeDB()
Method for database upgrade |
void |
onConfigurationChanged(Configuration newConfig)
|
protected void |
onCreate(Bundle savedInstanceState)
|
void |
onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource,
TaskFinishedEvent observedEvent)
|
protected void |
onResume()
|
private void |
prepare()
Preparation |
String |
readActivitiesFromAssets()
Method to read pre-configured activities from text file asset folder. |
private void |
redirectToMainActivity(boolean doDBRawDataUpdate)
Does start the main activity. |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AtomicBoolean isNotFirstStart
private AtomicBoolean hasToUpgradeDB
private Intent intent
Constructor Detail |
---|
public StarterActivity()
Method Detail |
---|
protected final void onCreate(Bundle savedInstanceState)
onCreate
in class Activity
public final String readActivitiesFromAssets()
public final void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in interface ComponentCallbacks
onConfigurationChanged
in class Activity
private final void prepare()
protected final void onResume()
onResume
in class Activity
protected final void doUpdateConfiguration()
protected final boolean doUpgradeDB()
public final boolean doTestFrequency()
public final void onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource, TaskFinishedEvent observedEvent)
onEvent
in interface EventObserver<TaskFinishedEvent>
private final void redirectToMainActivity(boolean doDBRawDataUpdate)
doDBRawDataUpdate
- flag if the raw data db update must be started (DB upgrade of older versions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |