Skip to main content
Inspiring
January 26, 2015
Answered

App crash

  • January 26, 2015
  • 2 replies
  • 2087 views

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 has been closed for replies.
Correct answer Govind11519869

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

2 replies

Participating Frequently
February 6, 2015

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.

Participating Frequently
February 9, 2015

Bug has been added.

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

ciaoamigos1973
Inspiring
February 14, 2015

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

ciaoamigos1973
Inspiring
February 2, 2015

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

Inspiring
February 2, 2015

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.

ciaoamigos1973
Inspiring
February 2, 2015

I use flash CC how do I fix?