android.app
Class NativeActivity

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.view.ContextThemeWrapper
              extended by android.app.Activity
                  extended by android.app.NativeActivity
All Implemented Interfaces:
ComponentCallbacks, ComponentCallbacks2, InputQueue.Callback, KeyEvent.Callback, LayoutInflater.Factory, LayoutInflater.Factory2, SurfaceHolder.Callback, SurfaceHolder.Callback2, View.OnCreateContextMenuListener, ViewTreeObserver.OnGlobalLayoutListener, Window.Callback

public class NativeActivity
extends Activity
implements SurfaceHolder.Callback2, InputQueue.Callback, ViewTreeObserver.OnGlobalLayoutListener


Field Summary
static String META_DATA_FUNC_NAME
           
static String META_DATA_LIB_NAME
           
 
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 class android.content.Context
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_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, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_UI_HIDDEN
 
Constructor Summary
NativeActivity()
           
 
Method Summary
 boolean dispatchKeyEvent(KeyEvent event)
           
 void onConfigurationChanged(Configuration newConfig)
           
protected  void onCreate(Bundle savedInstanceState)
           
protected  void onDestroy()
           
 void onGlobalLayout()
           
 void onInputQueueCreated(InputQueue queue)
           
 void onInputQueueDestroyed(InputQueue queue)
           
 void onLowMemory()
           
protected  void onPause()
           
protected  void onResume()
           
protected  void onSaveInstanceState(Bundle outState)
           
protected  void onStart()
           
protected  void onStop()
           
 void onWindowFocusChanged(boolean hasFocus)
           
 void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
           
 void surfaceCreated(SurfaceHolder holder)
           
 void surfaceDestroyed(SurfaceHolder holder)
           
 void surfaceRedrawNeeded(SurfaceHolder holder)
           
 
Methods inherited from class android.app.Activity
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchGenericMotionEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dump, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isChangingConfigurations, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, onActionModeFinished, onActionModeStarted, onActivityResult, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onBackPressed, onChildTitleChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onCreateView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onNewIntent, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPostCreate, onPostResume, onPrepareDialog, onPrepareDialog, onPrepareOptionsMenu, onPreparePanel, onRestart, onRestoreInstanceState, onRetainNonConfigurationInstance, onSearchRequested, onTitleChanged, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, recreate, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setIntent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, showDialog, showDialog, startActionMode, startActivities, startActivity, startActivityForResult, startActivityFromChild, startActivityFromFragment, startActivityIfNeeded, startIntentSender, startIntentSenderForResult, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
 
Methods inherited from class android.view.ContextThemeWrapper
attachBaseContext, getTheme, setTheme
 
Methods inherited from class android.content.ContextWrapper
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
 
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

META_DATA_LIB_NAME

public static final String META_DATA_LIB_NAME
See Also:
Constant Field Values

META_DATA_FUNC_NAME

public static final String META_DATA_FUNC_NAME
See Also:
Constant Field Values
Constructor Detail

NativeActivity

public NativeActivity()
Method Detail

onCreate

protected void onCreate(Bundle savedInstanceState)
Overrides:
onCreate in class Activity

onDestroy

protected void onDestroy()
Overrides:
onDestroy in class Activity

onPause

protected void onPause()
Overrides:
onPause in class Activity

onResume

protected void onResume()
Overrides:
onResume in class Activity

onSaveInstanceState

protected void onSaveInstanceState(Bundle outState)
Overrides:
onSaveInstanceState in class Activity

onStart

protected void onStart()
Overrides:
onStart in class Activity

onStop

protected void onStop()
Overrides:
onStop in class Activity

onConfigurationChanged

public void onConfigurationChanged(Configuration newConfig)
Specified by:
onConfigurationChanged in interface ComponentCallbacks
Overrides:
onConfigurationChanged in class Activity

onLowMemory

public void onLowMemory()
Specified by:
onLowMemory in interface ComponentCallbacks
Overrides:
onLowMemory in class Activity

onWindowFocusChanged

public void onWindowFocusChanged(boolean hasFocus)
Specified by:
onWindowFocusChanged in interface Window.Callback
Overrides:
onWindowFocusChanged in class Activity

dispatchKeyEvent

public boolean dispatchKeyEvent(KeyEvent event)
Specified by:
dispatchKeyEvent in interface Window.Callback
Overrides:
dispatchKeyEvent in class Activity

surfaceCreated

public void surfaceCreated(SurfaceHolder holder)
Specified by:
surfaceCreated in interface SurfaceHolder.Callback

surfaceChanged

public void surfaceChanged(SurfaceHolder holder,
                           int format,
                           int width,
                           int height)
Specified by:
surfaceChanged in interface SurfaceHolder.Callback

surfaceRedrawNeeded

public void surfaceRedrawNeeded(SurfaceHolder holder)
Specified by:
surfaceRedrawNeeded in interface SurfaceHolder.Callback2

surfaceDestroyed

public void surfaceDestroyed(SurfaceHolder holder)
Specified by:
surfaceDestroyed in interface SurfaceHolder.Callback

onInputQueueCreated

public void onInputQueueCreated(InputQueue queue)
Specified by:
onInputQueueCreated in interface InputQueue.Callback

onInputQueueDestroyed

public void onInputQueueDestroyed(InputQueue queue)
Specified by:
onInputQueueDestroyed in interface InputQueue.Callback

onGlobalLayout

public void onGlobalLayout()
Specified by:
onGlobalLayout in interface ViewTreeObserver.OnGlobalLayoutListener


Copyright © 2008-2012. All Rights Reserved.