|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.app.Service
android.service.dreams.DreamService
com.badlogic.gdx.backends.android.AndroidDaydream
public class AndroidDaydream
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(ApplicationListener, boolean) method specifying the
configuration for the GLSurfaceView.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.badlogic.gdx.Application |
|---|
Application.ApplicationType |
| Field Summary |
|---|
| Fields inherited from class android.service.dreams.DreamService |
|---|
DREAM_META_DATA, SERVICE_INTERFACE |
| Fields inherited from class android.app.Service |
|---|
START_CONTINUATION_MASK, START_FLAG_REDELIVERY, START_FLAG_RETRY, START_NOT_STICKY, START_REDELIVER_INTENT, START_STICKY, START_STICKY_COMPATIBILITY |
| 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, 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, 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 |
| Fields inherited from interface com.badlogic.gdx.Application |
|---|
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_NONE |
| Fields inherited from interface android.content.ComponentCallbacks2 |
|---|
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 Summary | |
|---|---|
AndroidDaydream()
|
|
| Method Summary | |
|---|---|
void |
addLifecycleListener(LifecycleListener listener)
|
void |
debug(String tag,
String message)
|
void |
debug(String tag,
String message,
Throwable exception)
|
void |
error(String tag,
String message)
|
void |
error(String tag,
String message,
Throwable exception)
|
void |
exit()
|
ApplicationListener |
getApplicationListener()
|
Audio |
getAudio()
|
Clipboard |
getClipboard()
|
Files |
getFiles()
|
Graphics |
getGraphics()
|
Input |
getInput()
|
long |
getJavaHeap()
|
int |
getLogLevel()
|
long |
getNativeHeap()
|
Net |
getNet()
|
Preferences |
getPreferences(String name)
|
Application.ApplicationType |
getType()
|
int |
getVersion()
|
void |
initialize(ApplicationListener listener,
AndroidApplicationConfiguration config)
This method has to be called in the Activity#onCreate(Bundle) method. |
void |
initialize(ApplicationListener listener,
boolean useGL2IfAvailable)
This method has to be called in the Activity#onCreate(Bundle) method. |
android.view.View |
initializeForView(ApplicationListener listener,
AndroidApplicationConfiguration config)
This method has to be called in the Activity#onCreate(Bundle) method. |
android.view.View |
initializeForView(ApplicationListener listener,
boolean useGL2IfAvailable)
This method has to be called in the Activity#onCreate(Bundle) method. |
void |
log(String tag,
String message)
|
void |
log(String tag,
String message,
Throwable exception)
|
void |
onConfigurationChanged(android.content.res.Configuration config)
|
void |
onDetachedFromWindow()
|
void |
onDreamingStarted()
|
void |
onDreamingStopped()
|
void |
postRunnable(Runnable runnable)
|
void |
removeLifecycleListener(LifecycleListener listener)
|
void |
setLogLevel(int logLevel)
|
| 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, onMenuItemSelected, onMenuOpened, onPanelClosed, onPreparePanel, onSearchRequested, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, setContentView, setContentView, setContentView, setFullscreen, setInteractive, setScreenBright |
| Methods inherited from class android.app.Service |
|---|
getApplication, onLowMemory, onRebind, onStart, onStartCommand, onTaskRemoved, onTrimMemory, onUnbind, startForeground, stopForeground, stopSelf, stopSelf, stopSelfResult |
| Methods inherited from class android.content.ContextWrapper |
|---|
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, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getTheme, 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, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startInstrumentation, startIntentSender, startIntentSender, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AndroidDaydream()
| Method Detail |
|---|
public void initialize(ApplicationListener listener,
boolean useGL2IfAvailable)
Graphics.getGL20(). The GL10 and GL11 interfaces should not be used when
OpenGL ES 2.0 is enabled. To query whether enabling OpenGL ES 2.0 was successful use the Graphics.isGL20Available()
method. Uses a default AndroidApplicationConfiguration.
listener - the ApplicationListener implementing the program logicuseGL2IfAvailable - whether to use OpenGL ES 2.0 if its available.
public void initialize(ApplicationListener listener,
AndroidApplicationConfiguration config)
Graphics.getGL20(). The GL10 and GL11 interfaces should not be used when
OpenGL ES 2.0 is enabled. To query whether enabling OpenGL ES 2.0 was successful use the Graphics.isGL20Available()
method. You can configure other aspects of the application with the rest of the fields in the
AndroidApplicationConfiguration instance.
listener - the ApplicationListener implementing the program logicconfig - the AndroidApplicationConfiguration, defining various settings of the application (use accelerometer,
etc.).
public android.view.View initializeForView(ApplicationListener listener,
boolean useGL2IfAvailable)
Graphics.getGL20(). The GL10 and GL11 interfaces should not be used when
OpenGL ES 2.0 is enabled. To query whether enabling OpenGL ES 2.0 was successful use the Graphics.isGL20Available()
method. Uses a default AndroidApplicationConfiguration.
Note: you have to add the returned view to your layout!
listener - the ApplicationListener implementing the program logicuseGL2IfAvailable - whether to use OpenGL ES 2.0 if its available.
public android.view.View initializeForView(ApplicationListener listener,
AndroidApplicationConfiguration config)
Graphics.getGL20(). The GL10 and GL11 interfaces should not be used when
OpenGL ES 2.0 is enabled. To query whether enabling OpenGL ES 2.0 was successful use the Graphics.isGL20Available()
method. You can configure other aspects of the application with the rest of the fields in the
AndroidApplicationConfiguration instance.
Note: you have to add the returned view to your layout!
listener - the ApplicationListener implementing the program logicconfig - the AndroidApplicationConfiguration, defining various settings of the application (use accelerometer,
etc.).
public void onDreamingStopped()
onDreamingStopped in class android.service.dreams.DreamServicepublic void onDreamingStarted()
onDreamingStarted in class android.service.dreams.DreamServicepublic void onDetachedFromWindow()
onDetachedFromWindow in interface android.view.Window.CallbackonDetachedFromWindow in class android.service.dreams.DreamServicepublic ApplicationListener getApplicationListener()
getApplicationListener in interface Applicationpublic Audio getAudio()
getAudio in interface Applicationpublic Files getFiles()
getFiles in interface Applicationpublic Graphics getGraphics()
getGraphics in interface Applicationpublic Input getInput()
getInput in interface Applicationpublic Net getNet()
getNet in interface Applicationpublic Application.ApplicationType getType()
getType in interface Applicationpublic int getVersion()
getVersion in interface Applicationpublic long getJavaHeap()
getJavaHeap in interface Applicationpublic long getNativeHeap()
getNativeHeap in interface Applicationpublic Preferences getPreferences(String name)
getPreferences in interface Applicationpublic Clipboard getClipboard()
getClipboard in interface Applicationpublic void postRunnable(Runnable runnable)
postRunnable in interface Applicationpublic void onConfigurationChanged(android.content.res.Configuration config)
onConfigurationChanged in interface android.content.ComponentCallbacksonConfigurationChanged in class android.app.Servicepublic void exit()
exit in interface Application
public void debug(String tag,
String message)
debug in interface Application
public void debug(String tag,
String message,
Throwable exception)
debug in interface Application
public void log(String tag,
String message)
log in interface Application
public void log(String tag,
String message,
Throwable exception)
log in interface Application
public void error(String tag,
String message)
error in interface Application
public void error(String tag,
String message,
Throwable exception)
error in interface Applicationpublic void setLogLevel(int logLevel)
setLogLevel in interface Applicationpublic int getLogLevel()
getLogLevel in interface Applicationpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Applicationpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||