public class SWADMain extends MenuExpandableListActivity
Modifier and Type | Field and Description |
---|---|
protected String[] |
functions
Array of strings for main ListView
|
static String |
TAG
Tests tag name for Logcat
|
dbHelper, isDebuggable
Constructor and Description |
---|
SWADMain() |
Modifier and Type | Method and Description |
---|---|
static DataBaseHelper |
getDbHelper()
Gets the database helper
|
protected void |
onActivityResult(int requestCode,
int resultCode,
Intent data) |
void |
onCreate(Bundle icicle) |
boolean |
onCreateOptionsMenu(Menu menu) |
protected void |
onDestroy() |
boolean |
onOptionsItemSelected(MenuItem item) |
void |
onRefreshClick(View v)
Launches an action when refresh button is pushed
|
protected void |
onResume() |
protected void |
setMenuDbClean()
Creates an empty Menu and spinner when the data base is empty
|
void |
showUpgradeDialog(Context context)
Shows initial dialog after application upgrade.
|
error, onPause, showDialog, viewPreferences
protected String[] functions
public static final String TAG
public static DataBaseHelper getDbHelper()
public void showUpgradeDialog(Context context)
public void onCreate(Bundle icicle)
onCreate
in class MenuExpandableListActivity
protected void onResume()
onResume
in class MenuExpandableListActivity
protected void onDestroy()
protected void onActivityResult(int requestCode, int resultCode, Intent data)
protected void setMenuDbClean()
setMenuDbClean
in class MenuExpandableListActivity
public void onRefreshClick(View v)
v
- Actual viewpublic boolean onCreateOptionsMenu(Menu menu)
onCreateOptionsMenu
in class MenuExpandableListActivity
public boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected
in class MenuExpandableListActivity