Philipp Wiesemann
8f0ea4bcf7
Android: Removed outdated comment from source.
2015-03-25 22:47:22 +01:00
Joseba García Etxebarria
e997a4144d
* More Android patch work
2015-03-24 21:02:28 +01:00
Joseba García Etxebarria
3dcf5c743f
* Improve mouse support in Android. These changes require Android API v12 to compile
2015-03-24 20:45:29 +01:00
Philipp Wiesemann
97b6937ee2
Fixed wrong comment in implementation for Android.
2015-01-31 10:32:45 +01:00
Philipp Wiesemann
d2aee7d409
Fixed bug 2816 - [patch] Android: Expose screen refresh rate
...
Jonas Kulla
Display::getRefreshRate() is available on all API levels.
2015-01-23 20:29:08 +01:00
Philipp Wiesemann
1f37dea55a
Added name for second Java Thread on Android.
2014-11-23 20:35:51 +01:00
Philipp Wiesemann
7da09eba59
Fixed bug 2759 - Android findLibrary() returns NULL
...
Sylvain
extra patch with minor modifications:
- typo
- cancel-able set to false
- add the error message, so that the user can report it.
2014-10-24 11:53:34 +02:00
Philipp Wiesemann
2b40ad3b10
Added an option to define libraries to be loaded on Android in a derived class.
...
This way it is no more needed to modify SDLActivity.java to add own libraries.
2014-10-23 16:45:18 +02:00
Philipp Wiesemann
1e55e039ec
Fixed alert dialog for not loaded libraries on Android being cancelable.
...
If the alert dialog could be canceled the Activity would not be finished here.
Also setting the property to "true" would be redundant because that is default.
2014-10-23 16:41:01 +02:00
Philipp Wiesemann
1d8143941f
Fixed missing @Override annotation warning in source for Android.
2014-10-23 16:39:15 +02:00
Philipp Wiesemann
5767c4b5a3
Fixed upper case button in alert dialog for not loaded libraries on Android.
...
This is more consistent with the buttons of other dialogs on Android.
2014-10-23 16:38:03 +02:00
Philipp Wiesemann
25e97e03c9
Fixed typo in message of alert dialog for not loaded libraries on Android.
2014-10-23 16:34:48 +02:00
Philipp Wiesemann
db76896e79
Fixed writing new errors to standard output instead of error output on Android.
2014-10-23 16:33:27 +02:00
Philipp Wiesemann
8b744670c3
Fixed documentation in source for Android.
2014-10-23 16:31:02 +02:00
Gabriel Jacobo
c77c91bb2a
[Android] #2759 : Show a message on failure to load a .so library (by Sylvain)
2014-10-21 11:44:35 -03:00
Philipp Wiesemann
69e989c667
Fixed setting of screen saver state crashing on some version of Android.
...
Setting Window flags seems to affect Views and must be handled on UI thread.
2014-10-20 22:19:09 +02:00
Gabriel Jacobo
0ec4fc6589
Bug 2739 - [Android] No support for SDL_DisableScreenSaver by Martin Gerhardy
2014-10-20 10:10:39 -03:00
Philipp Wiesemann
a32480ef1f
Fixed bug 2476 - Allow custom main() arguments
...
rettichschnidi
I would like to pass custom arguments from my Java code (subclass of SDLActivity) to the native SDL2 binary.
2014-10-17 23:36:45 +02:00
Philipp Wiesemann
21af0c2d68
Fixed broken layout for buttons with configured color in messagebox on Android.
2014-09-25 20:56:27 +02:00
Philipp Wiesemann
00a37f9098
Added setting configured color to button texts for messagebox on Android.
2014-09-24 23:46:46 +02:00
Gabriel Jacobo
b70d45cec5
[Android] Fixes #2679 - Crash resuming from screen off
...
Before destroying the static Java-side data, wait for the SDL native thread,
*and* the listener thread that waits on it to trigger a clean up.
2014-09-17 08:59:43 -03:00
Philipp Wiesemann
946ca79670
Fixed key down closing messagebox dialog instead of key up on Android.
...
This fixed sending key up event to SDL a dialog closed by down did not consume.
2014-09-14 19:44:53 +02:00
Sam Lantinga
56f86cc81f
Fixed bug 2415 - Message Boxes aren't implemented on Android
...
Philipp Wiesemann
I attached a patch for an incomplete implementation of the messagebox parts.
It was not tested on lots of devices yet and features a very fragile workaround to block the calling SDL thread while the dialog is handled on Android's UI thread. Although it works for testmessage.c I assume there are lot of situations were it may fail (standby, device rotation and other changes). Also not all flags and colors are implemented.
On the other hand most uses of the messagebox are to show an error on start and fragility (or working at all) may not matter there.
2014-09-13 02:15:18 -07:00
Philipp Wiesemann
69487c41dd
Fixed warning about implicit boxing to Java Object.
2014-08-12 23:33:16 +02:00
Philipp Wiesemann
36341cbc34
Added javadoc comment for consistency.
2014-08-11 23:16:47 +02:00
Sam Lantinga
f5054661e6
Merged changes from Alexey Petruchik to support Android obb files
...
http://developer.android.com/google/play/expansion-files.html
2014-06-21 20:35:36 -07:00
Sam Lantinga
424dd9d921
Fixed bug 2558 - Missing FINGERUP in Android
...
Sylvain
If you play with the TouchScreen with +3 fingers randomly / pressing simultaneously all fingers.
You triggers FINGER DOWN events, but not always all the associated FINGER UP events.
So, after a while SDL_GetNumFingers() can report a wrong number of fingers pressed !
The explanation is hidden there : http://developer.android.com/reference/android/view/MotionEvent.html
Each pointer has a unique id that is assigned when it first goes down (indicated by ACTION_DOWN or ACTION_POINTER_DOWN).
A pointer id remains valid until the pointer eventually goes up (indicated by ACTION_UP or ACTION_POINTER_UP) or when the gesture is canceled (indicated by ACTION_CANCEL).
in ACTION_CANCEL :
The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would.
Constant Value: 3 (0x00000003)
2014-06-15 19:32:39 -07:00
Philipp Wiesemann
9024566f68
Changed two Java nested classes into static nested classes.
...
Both do not need an implicitly created reference to enclosing class.
2014-06-08 13:14:20 +02:00
Philipp Wiesemann
822b690cac
Added javadoc comments to document methods used by JNI.
2014-05-29 23:05:18 +02:00
Philipp Wiesemann
272e4b090a
Added javadoc comments to prevent unused parameter warning.
2014-05-29 22:58:06 +02:00
Philipp Wiesemann
4efae3ae35
Fixed implicit boxing and unboxing of Java Objects warning.
2014-05-29 22:53:53 +02:00
stopiccot
c076c21acb
added comment
...
--HG--
branch : apk
2014-04-30 23:05:05 +03:00
stopiccot
82ba2c2c8b
access google apk library through reflection
...
--HG--
branch : apk
2014-04-30 22:51:29 +03:00
stopiccot
20623e3dad
Fixing issues discovered by Philipp Wiesemann
...
--HG--
branch : apk
2014-04-23 03:42:32 +03:00
stopiccot
a41b3ce38b
inital apk extension support
...
--HG--
branch : apk
2014-04-07 21:20:39 +03:00
Philipp Wiesemann
5e41b5887c
Fixed unused local variable warning.
2014-04-05 23:24:33 +02:00
Gabriel Jacobo
bf6a7b1a2d
Try to work around Android's handling of static variables in terminated apps
...
Android, we want to love you, but you don't make it easy for us...
2014-02-12 18:12:14 -03:00
dbrady
e2653cfbe5
fixed hat code validation.
2014-01-28 15:28:20 -08:00
Philipp Wiesemann
60e32d1ffc
Removed unused variable from Java class for Android.
...
The audio thread was moved to native side and "protected" prevented a warning.
2014-01-26 23:50:35 +01:00
Gabriel Jacobo
037b44fc19
Bug 2358 - [Android] Sort joystick axes - Fix by David Brady
2014-01-24 09:54:04 -03:00
Philipp Wiesemann
d67b11b967
Fixed missing @Override annotation warning in source for Android.
2013-12-24 20:04:53 +01:00
Gabriel Jacobo
ae184f5e89
[Android] Hotplugging support for joysticks
2013-12-10 16:24:11 -03:00
Gabriel Jacobo
b3fa9a3e55
[Android] Handle native thread finishing when not commanded from the Java side
2013-12-05 10:51:38 -03:00
Sam Lantinga
aee889c1bd
Don't crash when no WM is present.
...
CR: Sam Lantinga.
2013-11-27 10:29:27 -08:00
Gabriel Jacobo
fc300345e6
[Android] Fixes #2228 , reworked touch code
...
Lets Android take care of which is the primary pointer (the one acting as the
mouse in SDL), reorganized the Java side code as well to make it easier to
understand.
2013-11-25 12:28:09 -03:00
Philipp Wiesemann
2ca1d5c980
Fixed bug 2258 - Crash when using Android clipboard
...
chw
The Android clipboard manager methods must be called from the UI thread,
otherwise crashes of the dalvikvm happen.
2013-11-23 23:38:16 +01:00
Gabriel Jacobo
c68f34799d
[Android] Try to improve handling of DPAD|GAMEPAD + KEYBOARD devices
...
It seems some devices report themselves as DPAD or GAMEPAD and KEYBOARD as well,
and we need to route different keycodes to different parts of SDL.
2013-11-19 10:00:05 -03:00
Gabriel Jacobo
edcae582ac
[Android] Try to improve handling of some dpad+gamepad+keyboard corner cases
2013-11-11 11:12:43 -03:00
Gabriel Jacobo
a5bc73516f
[Android] Fixes Bug 2031 - Backspace Not Sending Events From On-Screen Keyboard
...
Thanks Joe LeVeque!
2013-11-11 10:59:15 -03:00
Gabriel Jacobo
3940f9ca8e
[Android] Improve handling of keyboard, dpad and gamepad events
...
Thanks Dimitris Zenios for the report!
2013-11-11 10:49:48 -03:00