Skip to main content
Inspiring
Jan 26, 2015 3:05 PM UTC
Answered

App crash

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).

This topic is closed to new replies. Start a new post to keep the conversation going.
Govind11519869Correct answer
Adobe Employee
Feb 17, 2015 7:58 PM UTC

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'.


Hi,

Thanks for reporting the issue. We have fixed it and the fix should be available in next beta release.

Thanks

Govinda Gupta

13 replies

Participating Frequently
Feb 6, 2015 3:22 PM UTC

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.

Translate
Participating Frequently
Feb 9, 2015 10:05 AM UTC

Bug has been added.

bugbase.adobe.com/index.cfm?event=bug&id=3936424

Translate
ciaoamigos1973
Inspiring
Feb 14, 2015 8:11 AM UTC

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'.

Translate
ciaoamigos1973
Inspiring
Feb 2, 2015 6:07 PM UTC

Use the keyboard google? I same problem, with the keyboard of google. Help.

Translate
Inspiring
Feb 2, 2015 6:12 PM UTC

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.

Translate
ciaoamigos1973
Inspiring
Feb 2, 2015 6:27 PM UTC

I use flash CC how do I fix?

Translate