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
2013-10-01 16:38:58 +00:00
iwg..ic
c1c9fc871a
Add alpha bits to AppSettings. Currently only to be used for Android EGL config choosing.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10809 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-01 16:33:43 +00:00
iwg..ic
2711e729d0
Android: Modify EGLConfigChooser to evaluate available configs when asked by the surface. More to come to clean up this area. Addresses issue: http://hub.jmonkeyengine.org/forum/topic/crash-nexus-10-android-4-3/
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10798 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-19 21:25:38 +00:00
iwg..ic
1a94e65176
Android: Updated error checking for egl config logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10787 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-17 16:55:47 +00:00
iwg..ic
1e3e14ba75
Update cursorPos for TouchEvents so InputManager.getCursorPosition() returns the last touch location.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 16:52:30 +00:00
iwg..ic
123ccabaff
Android: Don't render mesh if vertex count == 0
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 16:49:51 +00:00
iwg..ic
a1316b4514
Android: Fix issue with AndroidHarness trying to pause audio after app.stop() closed down the audio renderer
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-17 02:25:13 +00:00
iwg..ic
20d5565cb7
Added a little offset to the physics ray to correct detecting onGround
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10705 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 02:59:16 +00:00
iwg..om
652c3e9cca
SDK: Update url for NBAndroid update center
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10672 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-29 16:56:26 +00:00
iwg..ic
ce3b8e843e
Removed logging of unset uniform for Android to match Desktop and avoid flooding the log
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10652 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-18 16:54:19 +00:00
iwg..ic
5622ce2483
Set log level to FINEST for unset uniform
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10651 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-18 16:35:52 +00:00
iwg..ic
eda3ed7160
Improve error message when shader uniform is not set
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10650 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-18 02:54:47 +00:00
iwg..om
1ac240e971
Android: fix missing period in javadoc
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10636 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-31 03:44:49 +00:00
iwg..ic
7e09bf035f
SDK: Update global library settings for Android OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10635 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-28 16:32:15 +00:00
iwg..ic
e952620640
SDK: Update location of Android OpenAL Soft jar file
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10634 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-28 16:30:57 +00:00
iwg..om
4d1e3dc9b5
SDK: Add Android OpenAL Soft to project libraries
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10629 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-20 16:37:47 +00:00
iwg..om
7885dc516e
SDK: Modified description to force update of project template with newer Test classes
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10628 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-20 16:07:17 +00:00
iwg..om
049514df4e
SDK: Add SingleTask Launch Mode to AndroidManifest for new projects to avoid starting a new instance of the app when users hit the Home button and then resume the app.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10627 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-19 03:58:15 +00:00
iwg..om
4395c45092
SDK: Copy OpenAL Soft to correct library directory
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10626 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-19 03:44:17 +00:00
iwg..om
ce583be446
SDK: Bump version number of mobile-impl.xml to force updates
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10625 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-17 23:34:53 +00:00
iwg..om
bbf88a3090
SDK: Automatically unzip OpenAL Soft libraries in mobile/libs if included in the classpath
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10624 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-17 23:27:25 +00:00
iwg..om
65709a17b6
SDK: Organize imports in MainActivity
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10623 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-17 23:26:11 +00:00
iwg..om
509cc7ba70
Android OpenAL Soft: Clean up some logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10620 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-16 17:04:10 +00:00
iwg..om
66ed9ff986
Add OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-15 21:51:01 +00:00
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
2013-05-15 21:44:21 +00:00
iwg..om
96f7b179b5
Android: Copy OpenAL Soft library to dist/opt directory when building the engine. Updated OpenAL Soft jar file.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10614 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-15 21:38:49 +00:00
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
2013-05-13 15:56:29 +00:00
iwg..om
c1402b30e9
SDK: Add build support for Android implementation of OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10610 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-12 03:29:34 +00:00
iwg..om
785d50f516
Android: Add support for effects, filters, reverb, and environment to Android implementation of OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10609 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-12 03:15:22 +00:00
iwg..om
893bd93c60
Android: Initial OpenAL Soft binary libraries for testing
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10608 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-11 04:30:39 +00:00
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
2013-05-11 03:53:09 +00:00
iwg..om
b5f4541eec
Android: First commit of a new Audio system for Android that uses OpenAL Soft with the OpenSL backend. Requres Android 2.3 or higher. Source files for OpenAL Soft won't be included (similar to Native Bullet). The current Android audio renderer is still enabled.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10606 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-11 01:48:08 +00:00
iwg..om
8bc322e651
SDK: Android: Removed verbose setting when copying project libs to mobile/libs
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10542 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-16 12:07:46 +00:00
iwg..om
086b241ea4
SDK: Android: Changed mobile-impl.xml to avoid pre-dexing external jar files.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10541 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-16 02:03:58 +00:00
iwg..om
ba8f8db23c
Android:
...
Add support for OGLES20 extension "GL_IMG_texture_npot" in addition to the currently used extension "GL_OES_texture_npot" to detect NPOT support.
Added additional Renderbufferstorage formats for RGB8 and RGBA8 image formats
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 01:17:56 +00:00
iwg..om
107b3f2b88
Modify normal map to use png instead of dds to enable running on Android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10514 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:20:00 +00:00
iwg..om
e26c86c794
Android: Initial commit to support FrameBuffers. This is still a work in progress. FilterPostProcessors currently don't work on Android devices that do not support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10513 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:18:43 +00:00
iwg..om
2037ece7d8
SDK: Add imports for new default setting for logging level in Android MainActivity.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10487 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 02:42:35 +00:00
iwg..om
d197cd43ff
SDK: Add default setting for logging level in Android MainActivity.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10486 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 02:34:11 +00:00
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
2013-03-15 01:28:07 +00:00
iwg..ic
305e3f25e0
SDK: Updates to JME3 Tests for Android Template
...
- Add Android menu for enabling/disabling mouse events and joystick events
- Exclude some of the mobile directories in the template zip file
- Extract the uif labels as resource strings
- Disable OK button on main activity until a test case is selected
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10392 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-12 02:45:21 +00:00
iwg..om
b475a8e9c9
mouseEventsInvertX and mouseEventsInvertY settings in newly created MainActivity files and instead, show mouseEventsEnabled. Default values in AndroidHarness (false for both invertX and invertY) match Desktop mouse.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10391 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 23:08:00 +00:00
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
2013-02-10 23:05:25 +00:00
iwg..om
30c2bb665e
Create seperate ant target in mobile-impl for copying the Android lib. Allows for easy overriding of the target in build.xml to define alternative Android libs.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10389 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 16:33:57 +00:00
iwg..om
1d1b893510
SDK: Update icon and description for JME3 Test Android project template.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10388 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-10 16:30:02 +00:00
iwg..om
d3426d8f5e
Add sdk template for jME3 Test classes configured to run as an Android project.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10387 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:31:10 +00:00
iwg..om
343f9fd08e
Add automatic zip of Android Tests template project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10386 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:26:34 +00:00
iwg..om
d59e679f71
Add copy of engine src/test to Android jME3 Test template project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10384 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:23:32 +00:00
iwg..om
24b9cb3587
Setting ignore for jme3test src directories. They are copied in during build.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10383 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:15:21 +00:00
iwg..om
9bb4efdeb5
Initial commit for the jME3 Tests template project configured as an Android project
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10382 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:12:33 +00:00
iwg..ic
e21f22e6dc
Fixed issue with handling Multi-Touch not tracking MOVE for second finger when first finger is lifted. Thanks to kumasao.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-08 17:45:31 +00:00
iwg..ic
ab5282fb2d
Additional fix for http://code.google.com/p/jmonkeyengine/issues/detail?id=504 .
...
Fixes displaying leftover characters in BitmapText when setting the text to a smaller string and a weird situation where the scene would stop rendering do to improper buffer limit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10060 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-08 17:10:32 +00:00
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
2012-12-28 04:47:50 +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
feff63fda2
Add support for JmeSystem.StorageFolderType in saveGame and loadGame
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10022 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-06 17:05:50 +00:00
iwg..ic
dd46be3688
Add support for multiple folder storage types for getStorageFolder
...
See forum post http://jmonkeyengine.org/groups/android/forum/topic/jmesystem-getstoragefolder-updates/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10020 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-05 00:59:52 +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
iwg..ic
3afb803c68
Added check for sensor data accuracy to ignore data when sensor accuracy is unreliable.
...
Fixed error in log entry when sensor accuracy changes
Added log entry on calibration of axis
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9789 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-01 13:58:15 +00:00
iwg..ic
56bf97a7e2
Update Android Sensors to be compatible with the new Joystick interface. http://code.google.com/p/jmonkeyengine/source/detail?r=9763 http://code.google.com/p/jmonkeyengine/source/detail?r=9762
...
Only Orientation is supported currently
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 01:59:19 +00:00
iwg..ic
8daa039ecc
Add methods to control FlyByCamera zooming speed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9759 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 04:08:55 +00:00
iwg..ic
47cb989c63
Added mapping of Android Scale Gesture (ie PinchZoom) to mouse wheel. If mouseEventsEnabled is set, mouse wheel reacts to the gesture.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9758 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 03:44:17 +00:00
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
2012-09-16 22:00:27 +00:00
iwg..ic
fa6716877e
Remove requirement for buffer type images to have width=height on Android devices that do not support NPOT. Now images allowed as long as both height and width are POT on devices that don't support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9744 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 20:58:09 +00:00
iwg..ic
d2b97fb422
Fix issue with onPause trying to cancel vibration when user has not defined Vibration Service permission in manifest.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9716 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 03:30:18 +00:00
iwg..ic
5a71423624
Fix issue with BEST config not choosing a valid config on some devices when RGBA is not matched (ie no config exists with 0bit alpha). ConfigChooser now looks for an exact match of all attributes first, then a match of RGBA only, then uses the first available config.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9715 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 01:07:25 +00:00
iwg..ic
3aa223360a
Add check for no Vibration Service on Device
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9714 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 00:52:49 +00:00
iwg..ic
5aca23f9b3
Changed Android Joystick Rumble to pulses. Rumble amount is used to determine length of vibration pulse. Vibration now stays on (pulsing based on rumble amount) until user sets joystick.rumble(0).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9709 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 20:56:29 +00:00
iwg..ic
f219c8596d
Added Rumble support for Android. If joystick.rumble is used, then the Manifest file must have <uses-permission android:name="android.permission.VIBRATE"/>. Since Android doesn't allow for changing the vibration intensity, the rumble amount is convert into a vibration time duration in milliseconds (ie rumble amount of 0.25 = 250 milliseconds).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9708 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 14:23:51 +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