Package 

Class AndroidDaydream

  • All Implemented Interfaces:
    android.content.ComponentCallbacks , android.content.ComponentCallbacks2 , android.view.Window.Callback , com.badlogic.gdx.Application , com.badlogic.gdx.backends.android.AndroidApplicationBase

    
    public class AndroidDaydream
    extends DreamService implements AndroidApplicationBase
                        

    An implementation of the Application interface for Android. Create an Activity that derives from this class. In the Activity#onCreate(Bundle) method call the initialize method specifying the configuration for the GLSurfaceView.

    • Method Summary

      Modifier and Type Method Description
      AndroidInput getInput() Returns the AndroidInput object associated with this AndroidApplicationBase
      Handler getHandler() Returns the Handler object created by the application
      Array<Runnable> getRunnables() A set of usable runnables
      Array<Runnable> getExecutedRunnables() The currently executed runnables
      SnapshotArray<LifecycleListener> getLifecycleListeners() Returns the LifecycleListener array associated with this AndroidApplicationBase
      int getLogLevel()
      void setLogLevel(int logLevel)
      ApplicationLogger getApplicationLogger()
      void setApplicationLogger(ApplicationLogger applicationLogger)
      void initialize(ApplicationListener listener) This method has to be called in the Activity#onCreate(Bundle) method.
      void initialize(ApplicationListener listener, AndroidApplicationConfiguration config) This method has to be called in the Activity#onCreate(Bundle) method.
      View initializeForView(ApplicationListener listener) This method has to be called in the Activity#onCreate(Bundle) method.
      View initializeForView(ApplicationListener listener, AndroidApplicationConfiguration config) This method has to be called in the Activity#onCreate(Bundle) method.
      void onDreamingStopped()
      void onDreamingStarted()
      void onDetachedFromWindow()
      ApplicationListener getApplicationListener()
      Application.ApplicationType getType()
      int getVersion()
      long getJavaHeap()
      long getNativeHeap()
      Preferences getPreferences(String name)
      void postRunnable(Runnable runnable)
      void onConfigurationChanged(Configuration config)
      void exit()
      void debug(String tag, String message)
      void debug(String tag, String message, Throwable exception)
      void log(String tag, String message)
      void log(String tag, String message, Throwable exception)
      void error(String tag, String message)
      void error(String tag, String message, Throwable exception)
      void addLifecycleListener(LifecycleListener listener)
      void removeLifecycleListener(LifecycleListener listener)
      Context getContext() The application or activity context
      Window getApplicationWindow() Returns the Window associated with the application
      AndroidAudio createAudio(Context context, AndroidApplicationConfiguration config) Returns the AndroidAudio to be used by the application
      AndroidInput createInput(Application activity, Context context, Object view, AndroidApplicationConfiguration config) Returns the AndroidInput to be used by the application
      void runOnUiThread(Runnable runnable) Method signifies an intent of the caller to execute some action on the UI Thread.
      void useImmersiveMode(boolean b) Activates Android 4.4 KitKat's 'Immersive Mode' feature.
      • Methods inherited from class android.service.dreams.DreamService

        addContentView, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, finish, getWindow, getWindowManager, isFullscreen, isInteractive, isScreenBright, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBind, onContentChanged, onCreate, onCreatePanelMenu, onCreatePanelView, onDestroy, onDetachedFromWindow, onDreamingStarted, onDreamingStopped, onMenuItemSelected, onMenuOpened, onPanelClosed, onPreparePanel, onSearchRequested, onUnbind, onWakeUp, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, requireViewById, setContentView, setFullscreen, setInteractive, setScreenBright, wakeUp
      • Methods inherited from class android.app.Service

        getApplication, getForegroundServiceType, onConfigurationChanged, onLowMemory, onRebind, onStart, onStartCommand, onTaskRemoved, onTimeout, onTrimMemory, startForeground, stopForeground, stopSelf, stopSelfResult
      • Methods inherited from class android.content.ContextWrapper

        bindIsolatedService, bindService, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDataDir, getDatabasePath, getDeviceId, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFileStreamPath, getFilesDir, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, isUiContext, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerComponentCallbacks, registerDeviceIdChangeListener, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeSelfPermissionsOnKill, revokeUriPermission, sendBroadcast, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, startActivities, startActivity, startForegroundService, startInstrumentation, startIntentSender, startService, stopService, unbindService, unregisterComponentCallbacks, unregisterDeviceIdChangeListener, unregisterReceiver, updateServiceGroup
      • Methods inherited from class android.content.Context

        getColor, getColorStateList, getDrawable, getString, getSystemService, getText, obtainStyledAttributes, revokeSelfPermissionOnKill, sendBroadcastWithMultiplePermissions
      • Methods inherited from class android.view.Window.Callback

        onPointerCaptureChanged, onProvideKeyboardShortcuts
      • Methods inherited from class com.badlogic.gdx.backends.android.AndroidApplicationBase

        getWindowManager, startActivity
      • Methods inherited from class com.badlogic.gdx.Application

        addLifecycleListener, debug, error, exit, getApplicationListener, getApplicationLogger, getAudio, getClipboard, getFiles, getGraphics, getInput, getJavaHeap, getLogLevel, getNativeHeap, getNet, getPreferences, getType, getVersion, log, postRunnable, removeLifecycleListener, setApplicationLogger, setLogLevel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait