iwgeric
4102e91456
Android: remove unused properties in AndroidHarnessFragment
10 years ago
iwgeric
b71d94c37c
Fix NPE while destroying the Fragment when a splash screen is used.
10 years ago
iwgeric
6d8ef39976
Add support for setting a maximum resolution on the GLSurfaceView while maintaining the aspect ratio (AndroidHarnessFragment only).
10 years ago
iwgeric
6ec86fe919
Initial commit for support of launching a jME application as an Android Fragment
10 years ago
iwgeric
0777a18a84
Deprecate screenOrientation from AndroidHarness.
...
Users should set the AndroidManifest.xml property for screen orientation instead. Removes app start, end, restart if the MainActivity.screenOrientation doesn't match the current device orientation. Setting the value in AndroidManifest.xml sets the device orientation before the app starts.
10 years ago
iwgeric
3a82c9eca1
Add frame rate limitiing on Android.
...
If frameRate is set in MainActivity, the application will limit the frame rate to the value defined. This can be used to save battery life.
10 years ago
iwgeric
47477daa05
Forgot to update the commit text
10 years ago
iwgeric
5948479de4
comment out android show keyboard. Now using JmeSystem method to show/hide android soft keyboard.
10 years ago
iwgeric
1ed1463476
Add support for enabling/disabling KeyEvent simulation for soft keyboards on Android similar to MouseEvents.
10 years ago
iwgeric
858fd433ca
Implement showSoftKeyboard for Android.
...
Also changed JmeAndroidSystem to store the view instead of the activity.
When users call JmeSystem.showSoftKeyboard(true), the default Android soft keyboard is displayed and any key presses are sent to jME as touch events. Key events are also generated so the user can use the same key listeners as Desktop to keep the user code common between Desktop and Android platforms.
10 years ago
shadowislord
8426bb7baf
Officially switch to the new Android audio system (PART 2..)
11 years ago
shadowislord
91715c4a48
Add support for URA, or Unified Renderer Architecture for audio
...
* Unified all renderers into common class 'ALAudioRenderer'
* LWJGL and Android now implement the AL / ALC / EFX interfaces to provide a common OpenAL backend for jME
* Added support for OpenAL Soft "Pause Device" extension, which allows the engine to pause the context while running in the background (currently requires OpenAL soft 1.16 and thus is Android only feature)
11 years ago
shadowislord
14bfc7e166
Minor cleanups (no functionality change)
11 years ago
shadowislord
b7a4faebf0
Remove deprecated fields from AndroidHarness
11 years ago
shadowislord
18b9ef5540
Refactor Android system
...
* Minor clean in context creation
* Remove AndroidGLSurfaceView (it wasn't doing anything)
* Delete AndroidTimer. Now android will be using NanoTimer
11 years ago
shadowislord
6b12d5c638
* Fix many javadoc errors mostly related to incorrect HTML or missing references
11 years ago
Normen Hansen
a16857c8f4
switch to gradle layout
11 years ago
iwg..ic
9e8abfb6ec
Android: Remove Escape key mapping from InputManager (defined in SimpleApplication) when using Android platforms.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10898 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
592303181e
Android: Rewrite of EGL config chooser. ConfigType is also now deprecated so that egl* protected parameters in AndroidHarness can be used. These new parameters are copied into AppSettings and then used in AndroidConfigChooser to define the minimum requirements for selecting an appropriate egl config. If a different config is choosen, the AppSettings are updated so users can detect the currently used values.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10810 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
1ac240e971
Android: fix missing period in javadoc
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10636 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
e727928731
Android: Refactor AndroidAudioRenderer into an interface with 2 implementations (current MediaPlayer/SoundPool and new OpenAL Soft). Added AppSetting that allows AndroidHarness to switch the audio renderer (default is still MediaPlayer/SoundPool).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10615 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
58684996f9
Android: Added methods for OpenAL Soft Audio Renderer to pause and resume audio when app is placed in the background
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10613 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
0ff86728d8
Android: Moved some code from onPause/onResume to loseFocus/gainFocus to address issues/patches 593, 566, 564. Users can now override loseFocus/gainFocus in MainActivity if they do not want to pause/resume the app based on Android's lifecycle methods onPause/onResume.
...
https://code.google.com/p/jmonkeyengine/issues/detail?id=593
https://code.google.com/p/jmonkeyengine/issues/detail?id=564
https://code.google.com/p/jmonkeyengine/issues/detail?id=566
(Yes, there were 3 patch requests for the same thing)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10607 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
8c1e5c9cf9
* Set AndroidHarness contentView to a TextView (not GLSurfaceView) onDestroy(), perhaps it will help with OOM issues
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10551 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
a53c052f74
Fix issue with how Android logging is handled.
...
- Replaced standard Android logging Handler to avoid Android issue with only logging Level.INFO -> Level.SEVERE log records.
- Moved logging Handler initialization to AndroidHarness instead of in JmeSystem so logging in AndroidHarness and app startup could be logged.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10485 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
bfb1b21d6b
Android : FINE or lower log levels are now displayed in output when configured so
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
1d7a631430
Android : MultiSampling is now supported on android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10460 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
9a28fed581
Android : changed the way the pixel config is passed to the OGLESContext. It's now passed in the appSettings.
...
This is a first step toward a generalization of the use of appSettings in the AndroidHarness.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
b7ae718b64
Correct default value for invert mouse events. By default, raw touch events have the same coordinate origin as Desktop mouse events (lower left corner). The default for mouseEventsInvertX and mouseEventsInvertY should be false to match Desktop mouse.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10390 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
ea973c14c3
- change logging from logger.info() logger.fine and logger.warning()
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
7ba657e430
- set logging from Level.INFO to Level.FINE for most logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
044d81f7e8
Add calls to loseFocus and gainFocus when activity pauses and resumes
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
1df4fe8346
Attempt to clean up some references to help with out of memory issues on second start of app on Android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
5b326f4054
Minor reorganization of how appSettings are created and passed to the Context on Android.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9745 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..om
39f265f50e
Adding Android Sensor support as simulated joysticks. Only orientation is supported right now, more sensor types to be added later. When device orientation changes, Joystick[0] is updated just like using an actual joystick. Users need to add "joystickEventsEnabled = true" to the MainActivity to enable the orientation joystick so battery life is conserved if sensor data is not desired. See http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for the long history.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
pot..om
16851eb1d8
Removing Android Sensor Support (undo r9610). Preparing for new way of implementing sensor support on Android.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9646 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
pot..om
bb631ab13a
Adding support for defining external (or internal in Android's case) sensors. This is still a work in progress. Major task yet to complete is defining the coordinate system to return the sensor data. 3 sensor types are defined: Magnetic, Accelerometer, Orientation. Right now the sensor data is returned in device coordinates for Magnetic and Acceleration, and World (Earth) coordinates for Orientation. Sensors use the Input Manager to define triggers and listeners like all other input types. Only Android has an implementation for SensorInput at this time. See forum post http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for details of the operation and current status.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9610 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
cc3577acdc
* Android renderer now supports configuration changes (see: http://jmonkeyengine.org/groups/android/forum/topic/supporting-device-configuration-changes/#post-181170 )
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9543 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
nor..67
ea0be5cf9f
- fix imports across engine
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9451 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
0fe3b69f7d
- ANDROID Reverted a change in resolution setting, as it apparently has bad side effects on GUI
...
- Android texture util ENABLE_COMPRESSION is now public to be able to change it. Accessing it through the appSettings would be better.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9436 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
29b2596359
* Removed various misc handling code from AndroidHarness to OGLESContext/JmeAndroidSystem to ease using jME3 outside of AndroidHarness
...
* Misc formatting changes in AndroidConfigChooser
* AndroidLogHandler now takes parameters into account
* Added additional settings in AppSettings to configure mouse emulation
* JmeSystem will now automatically try to load JmeAndroidSystem if it fails to load JmeDesktopSystem
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9407 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
1a771236cf
fix NPE in AndroidHarness when quitting (thanks iwgEric)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
191bd21b40
Removed AndroidHarness specific calls from the OGLESContext.
...
- The harness is now a system listener and dispatch the system events to the jme app
- Every Harness related code is now in the harness (exit hook dialog, and mapping addition, spash screen hiding,....)
- Added a handleExitHook flag to configure if the Harness should handle exit or not.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9238 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
d2b727cfd8
Android : OGLESContext can now finish the activity when being destroyed, this way calling app.stop() from jME finished the associated activity.
...
This feature can be disabled by setting a flag in the MainActivity.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9234 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
a3497ca8b2
Null check on audio renderer in the onPause and onResume of the android Harness. The audio renderer appears to be null (wich is another issue)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9171 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
b89b2428af
* Applied audio fix patch (thanks prich)
...
- Pause audio when jME3 app is paused
- Add WAV to supported formats
- Add Android audio test
* Minor javadoc fixes in AndroidHarness
* Made jme3tools.android.Fixed class deprecated
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9152 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
8652b1f759
Android
...
* Enable checking of errors per frame (if checkErrors is disabled)
* Formatting and javadoc fixes in AndroidHarness
* AndroidHarness.reportError() rewritten to for clarity
* OGLESContext will report OpenGL2 failure directly to app through handleError instead of continuing execution
* OGLESContext will register uncaught exception handler only for current thread
* Formatting and javadoc fixes in OGLESContext
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9142 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
82b1e94953
Added SpashScreen support for android thanks to iwgeric
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9106 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
nor..67
3cdaf0e051
jme3:
...
- fix imports in all classes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
14 years ago
nor..67
c906508e62
- big refactoring of engine build and cleaning of sources, totally breaking SDK build for now
...
- separate jar files for engine components
- resolve dependencies between code parts
- remove Nifty dependency from Cinematics
- remove Physics dependency from TerrainGrid
- add public accessors to Natives Extraction
- remove RenderHint serialization from networking
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
14 years ago