summaryrefslogtreecommitdiff
path: root/platform/android/java
AgeCommit message (Collapse)Author
2021-08-13Switch to input buffering on AndroidPedro J. Estébanez
Key, touch and joystick events will be passed directly from the UI thread to Godot, so they can benefit from agile input flushing. As another consequence of this new way of passing events, less Java object are created at runtime (`Runnable`), which is good since the garbage collector needs to run less. `AndroidInputHandler` is introduced to have a smaller cross-thread surface. `main_loop_request_go_back()` is removed in favor just inline calling `send_window_event()` at the most caller's convenience (i.e., leveraging the new `p_deferred`` parameter as appropriate). Lastly, `get_mouse_position()` and `get_mouse_button_state()` now just call through `Input` to avoid the need of sync of mouse data tracked on the UI thread.
2021-08-13Merge pull request #51586 from m4gr3d/investigate_godot_resume_stalls_masterRémi Verschelde
Resolve issue where the Godot app remains stuck when resuming.
2021-08-12Add support for prompting the user to retain app data on uninstall.Fredia Huya-Kouadio
Supported on Android 10 and higher.
2021-08-12Resolve issue where the Godot app remains stuck when resuming.Fredia Huya-Kouadio
This was caused by the fact that a new instance of Godot was created at resume while a previous instance already existed. The previous instance would then go through its cleanup lifecycle, and would thus attempt to close the entire app, leading to the system to restart the app, thus starting the cycle anew. The fix involves reusing the previous instance of Godot if one is available instead of creating a new one, as well as giving control to the host activity for how the process should be terminated.
2021-08-12Properly finishes Godot's Android activity when destroyed by the systemMarcus Brummer
2021-07-25Fix various typos with codespellluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-20Disable resource optimizations for release builds as it breaks the legacy ↵ne0fhyk
build system.
2021-07-06Merge pull request #50220 from madmiraal/fix-50125Rémi Verschelde
Queue the calls to GodotLib.key when Android virtual done is pressed
2021-07-06Remove Android onKeyMultiple overrideMarcel Admiraal
2021-07-06Queue the calls to GodotLib.key when Android virtual done is pressedMarcel Admiraal
2021-07-06Merge pull request #50107 from madmiraal/android-use-lambdasRémi Verschelde
Replace single method anonymous classes with lambdas in Godot Java code
2021-07-03Use static inner classes in Godot Java codeMarcel Admiraal
2021-07-03Replace single method anonymous classes with lambdas in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50085 from madmiraal/android-replace-stringbufferRémi Verschelde
Use StringBuilder instead StringBuffer in Godot Java code
2021-07-02Merge pull request #50083 from madmiraal/android-fix-raw-useRémi Verschelde
Fix raw use of parameterized Class
2021-07-02Remove redundant explicit types in Godot Java codeMarcel Admiraal
2021-07-02Use StringBuilder instead StringBuffer in Godot Java codeMarcel Admiraal
2021-07-02Merge pull request #50078 from madmiraal/android-remove-unused-importsRémi Verschelde
2021-07-02Fix raw use of parameterized ClassMarcel Admiraal
2021-07-02Remove unused imports from Android Java codeMarcel Admiraal
2021-07-02Merge pull request #50074 from madmiraal/android-replace-c-arrayRémi Verschelde
Use Java array declarations not C-style declarations in Android Java code
2021-07-02Merge pull request #50072 from madmiraal/android-remove-interface-modifiersRémi Verschelde
Remove redundant interface modifiers from Android Java code
2021-07-02Use Java array declarations not C-style declarations in Android Java codeMarcel Admiraal
2021-07-02Remove redundant interface modifiers from Android Java codeMarcel Admiraal
2021-07-02Remove unnecessary semicolons from Android Java codeMarcel Admiraal
2021-07-01Android: Add `isGame` application attribute, default to trueRémi Verschelde
It can be turned off in the export preset with `package/classify_as_game`. Upstream definition: https://developer.android.com/guide/topics/manifest/application-element#isGame > `android:isGame` > > Whether or not the application is a game. The system may group together > applications classifed as games or display them separately from other > applications. Also fixes replacing `android:allowBackup` in custom builds.
2021-06-30Fix unchecked call to put() warning in GodotInputHandler.javaMarcel Admiraal
2021-06-24Update config versions and deprecate the use of the jcenter maven repo.ne0fhyk
2021-06-22Add support for custom debug keystore.ne0fhyk
2021-06-10Merge pull request #49435 from madmiraal/add-android-external-dirRémi Verschelde
Add OS.get_external_data_dir() to get Android external directory
2021-06-10Add OS.get_external_data_dir() to get Android external directoryMarcel Admiraal
2021-06-10Remove unused AudioDriverAndroid from AndroidMarcel Admiraal
2021-06-07Merge pull request #49382 from akien-mga/misc-cleanupRémi Verschelde
Style: Cleanup uses of double spaces between words
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
2021-06-07Update Gradle archiveName and destinationDir propertiesMarcel Admiraal
2021-05-24Fixed screen orientation on AndroidSzymon Majewski
2021-05-19Android: Add support for cursor iconsthebestnom
2021-04-28[Android] fix generateDevTemplatethebestnom
2021-04-27Merge pull request #48228 from akien-mga/android-build-tools-30.0.3Rémi Verschelde
Android: Upgrade buildTools from 30.0.1 to 30.0.3
2021-04-26Remove deprecated xr features properties. These properties are now provided ↵Fredia Huya-Kouadio
directly by the plugin.
2021-04-26Android: Upgrade buildTools from 30.0.1 to 30.0.3Rémi Verschelde
It seems 30.0.1 had issues with compatibility with JDK 8 and 11, which appear to be solved in 30.0.3 as per godotengine/godot-docs#4796.
2021-04-20Merge pull request #47552 from szymonm-google/validation_layers_androidRémi Verschelde
Validation layers on Android
2021-04-14Allow to build dev template with symbolsthebestnom
2021-04-13Merge pull request #47844 from m4gr3d/update_activity_result_callbackRémi Verschelde
Add support for forwarding callbacks from Godot's parent activity
2021-04-12Add support for forwarding callbacks from Godot's parent activity.Fredia Huya-Kouadio
2021-04-12Fix custom boot splash image scaling.Fredia Huya-Kouadio
2021-04-12Validation layers on AndroidSzymon Majewski
2021-04-09Fix issue causing the response callback to be invoked with the invalid ↵Fredia Huya-Kouadio
`requestCode` and deprecate support for forwarding callbacks from Godot's parent activity.
2021-03-18Fixes on android:Bastiaan Olij
- creating Vulkan context instead of OpenGL - checking for validity of ENV in wrapper classes - fix for access to JavaVM from threads
2021-03-17Fix onMainRequestPermissionsResult callback for Android plugins.Fredia Huya-Kouadio