35 Commits

Author SHA1 Message Date
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
2013-01-31 22:26:10 +00:00
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
2012-12-28 04:27:10 +00:00
iwg..ic
200df1c84b androidInput.loadSettings was never called, so setting mouseEventsEnabled = false; in MainActivity had no effect.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10012 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-29 17:53:59 +00:00
sky..ok
28ce76245f Change all source licenses to say 2009-2012
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:01:57 +00:00
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
2012-09-01 21:10:41 +00:00
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
2012-08-12 01:35:56 +00:00
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
2012-08-04 01:55:37 +00:00
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
2012-07-10 03:46:44 +00:00
rem..om
4e987ae63e Android : Pixel Format again. Transparent or Translucent pixel format should not be the deault setting as they drain a substential amount of fps and that most of the games will have an opaque background.
There is now a new ogles configType called BEST_TRANSLUCENT if users really want a transparent background.
The BEST or FASTEST confing are now both OPAQUE, this gives a nice boost to the BEST configuration.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9508 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-17 15:23:49 +00:00
rem..om
67712589e2 Android : changed the way the glsurface's pixel format was chosen, allowing the surface to have a translucent background
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9507 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-17 08:43:09 +00:00
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
2012-05-20 19:53:13 +00:00
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
2012-03-07 19:22:41 +00:00
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
2012-03-05 22:25:42 +00:00
rem..om
92b97d38d8 Committed a patch from iwgeric, to make nifty Textfield display the soft keyboard on tap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9227 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 10:23:22 +00:00
Sha..rd
1aed2068be * Formatted many android classes and files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9202 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 19:49:15 +00:00
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
2012-02-11 06:08:49 +00:00
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
2012-01-21 09:59:10 +00:00
nor..67
3cdaf0e051 jme3:
- fix imports in all classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 14:06:48 +00:00
kim..ng
895e02f2a6 Android: minor fixes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8090 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 17:35:30 +00:00
kim..ng
5f0bfd8c2e Android: complete rework of the config chooser, LEGACY is still using Android phone code, FASTEST is using 5,6,5,0,16,0 but with code in jme3-andoid which is currently identical to the android source and BEST is using 8,8,8,8,16,0 - also with the same jme3 code.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8085 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 12:46:10 +00:00
kim..ng
bb2d1073de Android: added some more logging to the surface creation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7888 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-21 09:19:50 +00:00
kim..ng
0a58b3c92b Android: added ConfigType.LEGACY
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7858 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-13 10:32:00 +00:00
kim..ng
2f8ae09033 Android: Fixed a race condition in OGLESContext which sometimes called initialize() more than once, added screen resolution setting and invert mouse x to harness
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7850 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-12 09:25:36 +00:00
kim..ng
a7974ac659 Android: Added first prototype of AndroidAudioRenderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7723 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-24 20:11:27 +00:00
kim..ng
fef0820ca6 Android: fixed bug - EGL_SURFACE_TYPE is checked now. Added ConfigType.FASTEST and .BEST to AndroidHarness
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7685 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-21 22:13:42 +00:00
kim..ng
f02c21a51f Android: fixed crash in harness if inputManager is not initialized yet
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7647 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-17 09:56:55 +00:00
kim..ng
b1792a4e1a Android: Added depth textures and fixed best config chooser not to choose a high color, but OpenGL ES 1.0 config
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7624 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-14 12:59:56 +00:00
kim..ng
5461d56ac6 Android: Added proper OpenGL ES version detection and a best EGL Config Chooser
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7594 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-12 09:26:22 +00:00
kim..ng
dd100bed74 Android: preparation of android tree for jme input integration
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-04 20:28:36 +00:00
kim..ng
8cefea550e Android: Fixed race-condition on GLSurfaceView destroy, fixed MouseEvents for flyCam rotation bug
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7536 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-29 20:55:28 +00:00
kim..ng
f93b95b3a4 Android: Fixed app lifecycle. If you leave your activity with the back key the app will be destroyed, if you use the home key the app gets frozen in the background. You can return to it and it will be in the same state as when you left it.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7522 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-24 14:57:50 +00:00
kim..ng
46ca84e835 AndroidHarness integration
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7509 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-18 19:12:25 +00:00
kim..ng
a8e9d803dc src/android patchset: changes AndroidAssetManager, AndroidInput, OGLESContext, JmeSystem, TextureLoader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7502 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-15 19:17:34 +00:00
nor..67
44baefce4f - fix android build errors
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7399 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-02 23:41:10 +00:00
nor..67
9e53abbb7a move jme3 to trunk
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6971 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-14 12:55:32 +00:00