public class BaseTabActivity extends TabActivity
BaseTabActivity
class is intended for debug purposes. Overridden methods most of the time just adds lifecycle logging.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, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_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, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RESTRICTIONS_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, STORAGE_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_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 |
---|
BaseTabActivity()
Initialises a newly created
BaseTabActivity object. |
Modifier and Type | Method and Description |
---|---|
protected CoreLogger.Level |
getDebugLevel()
Override to change the logging level.
|
protected String |
getDebugMessage()
Override to change the logging message.
|
void |
onActionModeFinished(ActionMode mode)
Please refer to the base method description.
|
void |
onActionModeStarted(ActionMode mode)
Please refer to the base method description.
|
void |
onActivityReenter(int resultCode,
Intent data)
Please refer to the base method description.
|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
Please refer to the base method description.
|
void |
onAttachedToWindow()
Please refer to the base method description.
|
void |
onAttachFragment(Fragment fragment)
Please refer to the base method description.
|
void |
onBackPressed()
Please refer to the base method description.
|
void |
onConfigurationChanged(Configuration newConfig)
Please refer to the base method description.
|
protected void |
onCreate(Bundle savedInstanceState)
Please refer to the base method description.
|
protected Dialog |
onCreateDialog(int id)
Please refer to the base method description.
|
protected Dialog |
onCreateDialog(int id,
Bundle args)
Please refer to the base method description.
|
View |
onCreateView(String name,
Context context,
AttributeSet attrs)
Please refer to the base method description.
|
View |
onCreateView(View parent,
String name,
Context context,
AttributeSet attrs)
Please refer to the base method description.
|
protected void |
onDestroy()
Please refer to the base method description.
|
void |
onDetachedFromWindow()
Please refer to the base method description.
|
void |
onLowMemory()
Please refer to the base method description.
|
boolean |
onNavigateUp()
Please refer to the base method description.
|
boolean |
onNavigateUpFromChild(Activity child)
Please refer to the base method description.
|
protected void |
onNewIntent(Intent intent)
Please refer to the base method description.
|
protected void |
onPause()
Please refer to the base method description.
|
protected void |
onPostCreate(Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onPostCreate(Bundle savedInstanceState,
PersistableBundle persistentState)
Please refer to the base method description.
|
protected void |
onPostResume()
Please refer to the base method description.
|
protected void |
onPrepareDialog(int id,
Dialog dialog)
Please refer to the base method description.
|
protected void |
onPrepareDialog(int id,
Dialog dialog,
Bundle args)
Please refer to the base method description.
|
void |
onRequestPermissionsResult(int requestCode,
String[] permissions,
int[] grantResults)
Please refer to the base method description.
|
protected void |
onRestart()
Please refer to the base method description.
|
protected void |
onRestoreInstanceState(Bundle savedInstanceState)
Please refer to the base method description.
|
void |
onRestoreInstanceState(Bundle savedInstanceState,
PersistableBundle persistentState)
Please refer to the base method description.
|
protected void |
onResume()
Please refer to the base method description.
|
protected void |
onSaveInstanceState(Bundle outState)
Please refer to the base method description.
|
void |
onSaveInstanceState(Bundle outState,
PersistableBundle outPersistentState)
Please refer to the base method description.
|
protected void |
onStart()
Please refer to the base method description.
|
void |
onStateNotSaved()
Please refer to the base method description.
|
protected void |
onStop()
Please refer to the base method description.
|
void |
onTrimMemory(int level)
Please refer to the base method description.
|
void |
setRequestedOrientation(int requestedOrientation)
Please refer to the base method description.
|
getTabHost, getTabWidget, onChildTitleChanged, onContentChanged, setDefaultTab, setDefaultTab
getCurrentActivity, getLocalActivityManager
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dump, enterPictureInPictureMode, findViewById, finish, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMediaController, getMenuInflater, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSystemService, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onApplyThemeResource, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateNavigateUpTaskStack, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onEnterAnimationComplete, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMenuItemSelected, onMenuOpened, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPictureInPictureModeChanged, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onPreparePanel, onProvideAssistContent, onProvideAssistData, onProvideKeyboardShortcuts, onProvideReferrer, onRetainNonConfigurationInstance, onSearchRequested, onSearchRequested, onTitleChanged, onTouchEvent, onTrackballEvent, onUserInteraction, onUserLeaveHint, onVisibleBehindCanceled, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, postponeEnterTransition, recreate, registerForContextMenu, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, runOnUiThread, setActionBar, setContentTransitionManager, setContentView, setContentView, setContentView, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setIntent, setMediaController, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setResult, setResult, setSecondaryProgress, setTaskDescription, setTheme, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, setVrModeEnabled, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityForResult, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
applyOverrideConfiguration, attachBaseContext, getAssets, getResources, getTheme
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getSystemServiceName, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, 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
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
public BaseTabActivity()
BaseTabActivity
object.protected String getDebugMessage()
protected CoreLogger.Level getDebugLevel()
WARNING
.@CallSuper public void onActionModeFinished(ActionMode mode)
onActionModeFinished
in interface Window.Callback
onActionModeFinished
in class Activity
@CallSuper public void onActionModeStarted(ActionMode mode)
onActionModeStarted
in interface Window.Callback
onActionModeStarted
in class Activity
@CallSuper public void onActivityReenter(int resultCode, Intent data)
onActivityReenter
in class Activity
@CallSuper public void onActivityResult(int requestCode, int resultCode, Intent data)
onActivityResult
in class Activity
@CallSuper public void onAttachFragment(Fragment fragment)
onAttachFragment
in class Activity
@CallSuper public void onAttachedToWindow()
onAttachedToWindow
in interface Window.Callback
onAttachedToWindow
in class Activity
public void onBackPressed()
onBackPressed
in class Activity
@CallSuper public void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in interface ComponentCallbacks
onConfigurationChanged
in class Activity
@CallSuper protected void onCreate(Bundle savedInstanceState)
onCreate
in class ActivityGroup
@CallSuper protected Dialog onCreateDialog(int id)
onCreateDialog
in class Activity
@CallSuper protected Dialog onCreateDialog(int id, Bundle args)
onCreateDialog
in class Activity
@CallSuper public View onCreateView(View parent, String name, Context context, AttributeSet attrs)
onCreateView
in interface LayoutInflater.Factory2
onCreateView
in class Activity
@CallSuper public View onCreateView(String name, Context context, AttributeSet attrs)
onCreateView
in interface LayoutInflater.Factory
onCreateView
in class Activity
@CallSuper protected void onDestroy()
onDestroy
in class ActivityGroup
@CallSuper public void onDetachedFromWindow()
onDetachedFromWindow
in interface Window.Callback
onDetachedFromWindow
in class Activity
@CallSuper public void onLowMemory()
onLowMemory
in interface ComponentCallbacks
onLowMemory
in class Activity
@CallSuper public boolean onNavigateUp()
onNavigateUp
in class Activity
@CallSuper public boolean onNavigateUpFromChild(Activity child)
onNavigateUpFromChild
in class Activity
@CallSuper protected void onNewIntent(Intent intent)
onNewIntent
in class Activity
@CallSuper protected void onPause()
onPause
in class ActivityGroup
@CallSuper protected void onPostCreate(Bundle savedInstanceState)
onPostCreate
in class TabActivity
@CallSuper public void onPostCreate(Bundle savedInstanceState, PersistableBundle persistentState)
onPostCreate
in class Activity
@CallSuper protected void onPostResume()
onPostResume
in class Activity
@CallSuper protected void onPrepareDialog(int id, Dialog dialog)
onPrepareDialog
in class Activity
@CallSuper protected void onPrepareDialog(int id, Dialog dialog, Bundle args)
onPrepareDialog
in class Activity
@CallSuper public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
onRequestPermissionsResult
in class Activity
@CallSuper protected void onRestart()
@CallSuper protected void onRestoreInstanceState(Bundle savedInstanceState)
onRestoreInstanceState
in class TabActivity
@CallSuper public void onRestoreInstanceState(Bundle savedInstanceState, PersistableBundle persistentState)
onRestoreInstanceState
in class Activity
@CallSuper protected void onResume()
onResume
in class ActivityGroup
@CallSuper protected void onSaveInstanceState(Bundle outState)
onSaveInstanceState
in class TabActivity
@CallSuper public void onSaveInstanceState(Bundle outState, PersistableBundle outPersistentState)
onSaveInstanceState
in class Activity
@CallSuper protected void onStart()
@CallSuper public void onStateNotSaved()
onStateNotSaved
in class Activity
@CallSuper protected void onStop()
onStop
in class ActivityGroup
@CallSuper public void onTrimMemory(int level)
onTrimMemory
in interface ComponentCallbacks2
onTrimMemory
in class Activity
@CallSuper public void setRequestedOrientation(int requestedOrientation)
setRequestedOrientation
in class Activity
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.