Copy link to clipboard
Copied
I have one flex mobile application (however I'm not sure if this is not an Adobe AIR for Android bug)
It works fine on Android without "word prediction activated" and also with "word prediction activated" an a device with 240 DPI however my application is designed to work on a 120 DPI device and with word prediction activated and on this scenario, the app crash while typing text on a TextInput.
Steps to reproduce:
1. Type Luiz153
2. Remove "z" to get Lui153
3. Type "o" in the old "z" place to get Luio153
At this moment the app just crash with the following android stack trace log:
java.lang.StringIndexOutOfBoundsException: length=5; regionStart=-2; regionLength=7
at java.lang.String.startEndAndLength(String.java:588)
at java.lang.String.substring(String.java:1475)
at java.lang.String.subSequence(String.java:1862)
at com.adobe.air.AndroidInputConnection.setComposingRegion(AndroidInputConnection.java:183)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:342)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:77)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
Aditional info: If I change the TextInput skin class from spark.skins.mobile.TextInputSkin to standard desktop TextInputSkin, this issue don't occurs but of course I will get a lot of issues because it's not optimized for mobile so I believe that this issue is related with the flex mobile TextInputSkin).
Hi,
Thanks for reporting the issue. We have fixed it and the fix should be available in next beta release.
Thanks
Govinda Gupta
Copy link to clipboard
Copied
Use the keyboard google? I same problem, with the keyboard of google. Help.
Copy link to clipboard
Copied
This happens with some devices (seems that with small 120 DPI) and with the default keyboard.
Besides this seems something related with Adobe AIR for Android, this happens with the default spark mobile TextInput theme because with the new android theme from Apache Flex 4.14 this don't happens, however for the current project I can't switch right now to the new theme.
Copy link to clipboard
Copied
I use flash CC how do I fix?
Copy link to clipboard
Copied
This proves my theory: It's a AIR for Android problem.
Seems that there is an issue in a string manipulation. If the Adobe at least ignore the error (at least until find the real problem), could avoid the app to crash.
Another workaround would be to have a new application xml configuration to simple ignore word prediction.
Copy link to clipboard
Copied
Tried with S3. result:
- Samsung keyboard works.
- Keyboard google crashes when I remove the letters (BackSpace)
Copy link to clipboard
Copied
Right now for me this is a critical issue that Adobe should address.
Copy link to clipboard
Copied
For us the problem can be reproduced as follows:
1. Have a flash.text.TextField with maxChars set to some value
2. Have Google keyboard installed Google Keyboard - Android Apps on Google Play
3. Enter text that in length reaches maxChars. Continue typing using the predicted typing. No visible letters will appear, but that's ok.
4. Then press and hold backspace on the keyboard
5. See that app crashes.
Happens both, when IME is in full screen or in non full screen mode.
Tested on Adobe AIR 15, Sansubg Galaxty S3, Samsung Galaxy S5.
Copy link to clipboard
Copied
Bug has been added.
bugbase.adobe.com/index.cfm?event=bug&id=3936424
Copy link to clipboard
Copied
Needless open / insert new bugs.
Bugs in there over a year with a ton of votes. This is a core API for a mobile device. Not sure who is driving the roadmap but I vote on all bugs are 'totrack' or 'unverified'.
Copy link to clipboard
Copied
Hi,
Thanks for reporting the issue. We have fixed it and the fix should be available in next beta release.
Thanks
Govinda Gupta
Copy link to clipboard
Copied
Thank you very much.
Copy link to clipboard
Copied
Hi Govinda,
This beta release: "February 18, 2015 — AIR 17, code named Octavia" contains this fix?
Thanks
Dmitry
Copy link to clipboard
Copied
Fix is in 17.0.0.123 from Feb 25