public class NewPracticeSession extends Module
Modifier and Type | Field and Description |
---|---|
private Button |
btEndDate |
private Button |
btEndTime |
private Button |
btStartDate |
private Button |
btStartTime |
private static int |
END_DATE_DIALOG_ID |
private static int |
END_TIME_DIALOG_ID |
private EditText |
etDescription |
private EditText |
etSite |
private static int |
EXIT_DIALOG_ID |
private long |
groupCode |
private int |
initialDayEnd |
private int |
initialDayStart |
private int |
initialHourEnd |
private int |
initialHourStart |
private int |
initialMinuteEnd |
private int |
initialMinuteStart |
private int |
initialMonthEnd |
private int |
initialMonthStart |
private int |
initialYearEnd |
private int |
initialYearStart |
private int |
mDayEnd |
private int |
mDayStart |
private int |
mHourEnd |
private int |
mHourStart |
private int |
mMinuteEnd |
private int |
mMinuteStart |
private int |
mMonthEnd |
private int |
mMonthStart |
private int |
mYearEnd |
private int |
mYearStart |
private Dialog |
newSessionDialog |
private static int |
START_DATE_DIALOG_ID |
private static int |
START_TIME_DIALOG_ID |
static String |
TAG
New Practice Session tag name for Logcat
|
isConnected, result
dbHelper, isDebuggable
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
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAPTIONING_SERVICE, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_ROUTER_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
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 and Description |
---|
NewPracticeSession() |
Modifier and Type | Method and Description |
---|---|
protected void |
connect()
Launches action in a separate thread while shows a progress dialog in UI
thread.
|
private boolean |
formModified() |
private void |
initialize() |
void |
onBackPressed() |
protected void |
onCreate(Bundle savedInstanceState) |
protected Dialog |
onCreateDialog(int id) |
protected void |
onError()
Error handler
|
protected void |
onPause() |
protected void |
onStart() |
private static String |
pad(int c) |
protected void |
postConnect()
Launches action after executing connect() method
|
protected void |
requestService()
Connects to SWAD and gets user data.
|
private void |
setEndDateTimeAsStartDateTimePlusOneHour() |
private void |
updateEndDate() |
private void |
updateEndTime() |
private void |
updateStartDate() |
private void |
updateStartTime() |
addParam, createRequest, onActivityResult, onResume, onRetainNonConfigurationInstance, runConnection, sendRequest, sendRequest, setMETHOD_NAME, startConnection
error, onCreateOptionsMenu, onOptionsItemSelected, showDialog
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dump, findViewById, finish, finishActivity, finishActivityFromChild, finishAffinity, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMenuInflater, getParent, getParentActivityIntent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isTaskRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onConfigurationChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateNavigateUpTaskStack, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onCreateView, onDestroy, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onNavigateUp, onNavigateUpFromChild, onNewIntent, onOptionsMenuClosed, onPanelClosed, onPostCreate, onPostResume, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onPreparePanel, onProvideAssistData, onRestart, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onStop, onTitleChanged, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, recreate, registerForContextMenu, removeDialog, reportFullyDrawn, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setIntent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, shouldUpRecreateTask, showDialog, showDialog, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityForResult, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
private int initialYearStart
private int mYearStart
private int initialMonthStart
private int mMonthStart
private int initialDayStart
private int mDayStart
private int initialYearEnd
private int mYearEnd
private int initialMonthEnd
private int mMonthEnd
private int initialDayEnd
private int mDayEnd
private int initialHourStart
private int mHourStart
private int initialMinuteStart
private int mMinuteStart
private int initialHourEnd
private int mHourEnd
private int initialMinuteEnd
private int mMinuteEnd
private static final int START_DATE_DIALOG_ID
private static final int END_DATE_DIALOG_ID
private static final int START_TIME_DIALOG_ID
private static final int END_TIME_DIALOG_ID
private static final int EXIT_DIALOG_ID
private Button btStartDate
private Button btStartTime
private Button btEndDate
private Button btEndTime
private EditText etSite
private EditText etDescription
private long groupCode
private Dialog newSessionDialog
public static final String TAG
private void initialize()
private boolean formModified()
private void updateStartDate()
private void updateEndDate()
private static String pad(int c)
private void updateStartTime()
private void updateEndTime()
private void setEndDateTimeAsStartDateTimePlusOneHour()
protected Dialog onCreateDialog(int id)
onCreateDialog
in class Activity
public void onBackPressed()
onBackPressed
in class Activity
protected void requestService() throws NoSuchAlgorithmException, IOException, XmlPullParserException
Module
requestService
in class Module
NoSuchAlgorithmException
IOException
XmlPullParserException
protected void connect()
Module
protected void postConnect()
Module
postConnect
in class Module