Commit Graph
100 Commits
Author SHA1 Message Date
iwgeric ca76754889 SDK: Add missing global library for android native bullet 2015-03-29 23:02:05 -04:00
iwgeric 4baceb6a08 fixed compilation issues in deprecated OGLESShaderRenderer, IGLESShaderRenderer, and JoglRenderer caused by earlier commit 2015-02-14 10:27:23 -05:00
iwgeric 661f4c6d2e Copy jme3-android-native and jme3-bullet-native-android to the dist/opt folder as part of build 2015-02-08 00:11:46 -05:00
iwgeric 92b33ddc9e Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine 2015-01-30 13:00:51 -05:00
iwgeric b71d94c37c Fix NPE while destroying the Fragment when a splash screen is used. 2015-01-30 13:00:39 -05:00
iwgeric ef6882aeda Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine 2015-01-27 13:03:25 -05:00
iwgeric 6d8ef39976 Add support for setting a maximum resolution on the GLSurfaceView while maintaining the aspect ratio (AndroidHarnessFragment only). 2015-01-27 12:57:35 -05:00
iwgeric 6ec86fe919 Initial commit for support of launching a jME application as an Android Fragment 2015-01-26 21:28:11 -05:00
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.
2015-01-24 11:05:20 -05:00
iwgeric 83a9f87fe1 Enclose startParameter.excludedTaskNames inside task 2015-01-24 10:53:34 -05:00
iwgeric 31bc6bf526 Add a default app profiler for Android.
Users can add this app profiler in the MainActivity to show the application timings within the Android systrace utility.
2015-01-10 01:03:02 -05:00
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.
2015-01-06 08:46:19 -05:00
iwgeric 3ee52c38ed Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git 2015-01-06 08:40:22 -05:00
iwgeric 47477daa05 Forgot to update the commit text 2015-01-06 08:38:39 -05:00
iwgeric 5948479de4 comment out android show keyboard. Now using JmeSystem method to show/hide android soft keyboard. 2015-01-06 08:34:49 -05:00
iwgeric a55aae21f9 Minor cleanup of mouse / keyboard methods for touch.
Depreciated InputManager.getSimluateMouse and replaced with InputManager.isSimulateMouse for consistancy.
Removed depreciated TouchInput.getSimulateMouse().
Added InputManager.isSimulateKeyboard() to keep consistancy with mouse methods.
2014-12-12 13:16:41 -05:00
iwgeric a116389814 Forgot to add isSimulateKeyboard to TouchInput interface. 2014-12-12 13:00:05 -05:00
iwgeric 1ed1463476 Add support for enabling/disabling KeyEvent simulation for soft keyboards on Android similar to MouseEvents. 2014-12-12 12:48:25 -05:00
iwgeric 249f62fe95 remove showVirtualKeyboard from TouchInput 2014-12-12 12:16:45 -05:00
iwgeric 7040e32cc4 Add javadoc to JmeSystem.showSoftKeyboard 2014-12-12 12:04:16 -05:00
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.
2014-12-12 08:42:13 -05:00
iwgeric d42a777909 Add showSoftKeyboard(boolean show) to JmeSystem.
Includes empty implementations for now.  Android to be implemented in next commit.
2014-12-12 08:15:53 -05:00
iwgeric 8560b98aa0 Add android.jar to root project and use during jme-android project build.
Current version is rev19, KitKat.
2014-12-08 22:50:33 -05:00
iwgeric 6f4b90feed Temporary fix for searching for version strings until URA is done. 2014-12-08 22:41:45 -05:00
iwgeric fb04910980 Always include the jme3-android-native but only build based on "buildNativeProjects" property.
Needed to allow for the project to package the pre-compiled libs if not building the project.
2014-12-08 22:35:23 -05:00
iwgeric 7c8fa29b26 Adding a VideoRecorderAppState for Android. Performance is really bad, but it will at least run and store the AVI. Not really intended for app usage, but it's been handy in a couple of places. Just committing to lot lose the changes necessary to make it run. More work required, for sure. 2014-03-31 13:12:10 -04:00
iwgeric 37dd89c8f1 Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git 2014-03-31 12:18:22 -04:00
iwgeric a43b5c1835 remove android mk files from bullet-native. android native bullet has it's own subproject 2014-03-31 12:18:02 -04:00
iwgeric 768f099d1d remove android build from jme3-bullet-native (separate subproject now) 2014-03-28 08:32:03 -04:00
iwgeric 20c1894409 Merge AndroidNativeBulletSubProject 2014-03-28 08:21:18 -04:00
iwgeric dbe4912884 remove a change to ndk path (made by mistake) 2014-03-28 08:18:54 -04:00
iwgeric 1ef1420c4d update settings.gradle to include android native bullet project 2014-03-28 08:17:41 -04:00
iwgeric 26c08caa8c add separate project files for building android native bullet 2014-03-28 08:16:22 -04:00
iwgeric 8b912cd768 change method to check for existance of the android ndk 2014-03-28 08:15:10 -04:00
iwgeric 8a4bb58bda add native bullet build properties to gradle.properties in root project 2014-03-28 08:13:47 -04:00
iwgeric f380140ff7 add pre-compiled libs for android native bullet 2014-03-28 08:12:31 -04:00
iwgeric ef23737d36 ignore android native bullet build directory 2014-03-28 08:11:25 -04:00
iwgeric 13632f2ca9 remove unused project property 2014-03-25 12:24:27 -04:00
iwgeric ac8b52cff0 Merge origin/master 2014-03-25 08:48:23 -04:00
iwgeric 57b77151aa update android native build to support precompiled libs that are used if not building the libs. If building the libs, then the pre-compiled libs are updated with the output of the build. 2014-03-25 08:48:01 -04:00
iwgeric 88fa9b40dc Update .gitignore
Shouldn't have added libs directory.  This is for the pre-compiled native libs.
2014-03-24 20:01:51 -04:00
iwgeric a2ab6f183d merge and fix conflicts 2014-03-24 19:55:27 -04:00
iwgeric df2e38798d update native android libs build to use pre-compiled versions of the libs from the repo if not building native libs 2014-03-24 19:46:06 -04:00
iwgeric 384e19f281 update .gitignore for pre-compiled android native libs that are used when not rebuilding native libs 2014-03-24 19:42:01 -04:00
iwgeric f9bb9cb3a9 update .gitignore for downloaded stb_image files 2014-03-24 19:40:49 -04:00
iwgeric 4d272915d9 Remove Android Native project from build natives property check. 2014-03-24 19:37:42 -04:00
iwgeric c965e4066d Add method to check for existance of NDK 2014-03-24 19:35:44 -04:00
iwgeric 5cfd1c812b Change stb_image to be auto downloaded during build 2014-03-24 08:19:51 -04:00
iwgeric d1033005ae Change AndroidAssetManager to use the native lib to load png and gif files 2014-03-24 00:48:30 -04:00
iwgeric ee8e42f921 add native android lib for loading png and gif files. Does not premultiply. Uses stb_image (http://www.nothings.org/stb_image.c) 2014-03-24 00:47:08 -04:00
iwgeric b94a20db14 Merge commit 'f5c841aac54c09cb038d942407245f440f1d02d6' 2014-03-24 00:41:12 -04:00
iwgeric d871ba42be Merge commit 'a0ccd9984c328dda80df3acffad6095e76878c52' 2014-03-24 00:40:12 -04:00
iwgeric f5c841aac5 reorganize build of Android OpenAL Soft lib 2014-03-24 00:11:38 -04:00
iwgeric a0ccd9984c add method to find the android ndk build executable in a common way for all sub projects that need to build a native android lib 2014-03-24 00:05:23 -04:00
iwgeric a186abba6a test commit from github site
only added a blank line to test making changes from the github site.
2014-03-22 07:50:49 -04:00
iwg..ic a0badf9d4c Add jar packaging for android native bullet builds
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10992 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-15 17:45:41 +00:00
iwg..ic 766ebef96d WIP: Add support to build the Native Bullet for Android (only building, not packaging into jar file yet)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10991 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 18:20:12 +00:00
iwg..ic a8a664b76b Import commit 10930 from the experimental branch to support Bullet file list changes in the future (and fix build of Bullet 2.82)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10990 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 18:06:56 +00:00
iwg..ic 5453d4f5e9 Improve checking of when to download and unzip the source OpenAL Soft files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10989 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 17:56:24 +00:00
iwg..ic 5b2a661f56 Add support for downloading and building OpenAL Soft for native Android audio
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10988 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 04:06:05 +00:00
iwg..ic 71938ff80d fix android.mk for OpenAL Soft build
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10987 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 03:34:43 +00:00
iwg..ic 8069f10d30 add android ndk build path
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10986 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-14 03:32:02 +00:00
iwg..ic 911958cfbe Android: set PreserveEGLContextOnPause when the os is rev 11 or higher. Dramatically reduces the resume time when the context can be preserved.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10919 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-27 02:11:49 +00:00
iwg..ic 743aa2144a Android: Add scaling to input coordinates (onTouch Coordinates from Android) to compensate for manually set surface resolutions. Android always sends the touch coordinates relative to the view resolution, not the resolution of the surface. If users use view.getHolder().setFixedSize(width, height) in MainActivity.onCreate(), then the input coordinates are not correct which messes up ray casting and other things. This scales the input coordinates before sending them to jME.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10918 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-26 02:35:00 +00:00
iwg..ic 4f75cb688f Android: Move application initialization to the first onDrawFrame. Resolves issues where simpleInitApp gets called without the correct appsettings width and height.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10917 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-26 02:20:42 +00:00
iwg..ic cf92f30090 Android: Change Android Input to the new AndroidInputHandler.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10908 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-22 17:15:39 +00:00
iwg..ic 60c58fd081 Android: Add new extendable input system to organize various Android inputs so that they can be extended to support new Android input functionality when the OS running the app supports it. Not activated yet. Just adding the supporting classes for now.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10907 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-22 13:33:30 +00:00
iwg..ic 67aa834369 Android: Add onHover events to TouchEvent. Not implemented yet.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10906 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-22 13:07:43 +00:00
iwg..ic a1dee924f6 Android: Updating source compile android.jar library to rev19. Developers, don't forget to use Build.VERSION.SDK_INT to check for the OS version when using Android features added after rev9. Base version of Android supported by jME 3.1 will be rev9 (Android 2.3).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10905 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-21 22:11:23 +00:00
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
2013-11-21 18:20:38 +00:00
iwg..ic 9ed99ce21f Add placeholder for future showVirtualKeyboard method for platforms implementing TouchInput
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10897 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-20 13:30:51 +00:00
iwg..ic f7e8f405d5 Add toString() method for TouchEvent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10896 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-20 13:22:35 +00:00
iwg..ic 813d163ea7 Add wheel values to toString() for MouseMotionEvent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10895 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-20 13:21:18 +00:00
iwg..ic 21f9aac4ce Fix issue with clearing the map of native objects without clearing the ReferenceQueue. Caused exception in NativeObjectManager when Android recreated the OpenGL context before objects were polled from the ReferenceQueue.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10889 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-13 17:39:55 +00:00
iwg..ic 6a39a6b5ba Add isEnabled to PhysicsControl interface
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10823 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-09 12:19:14 +00:00
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