0

I have an enterprise Flex web application, served up over https, that runs fine on Flash player 10.0 and beyond on a desktop computer/browser.

However, when I run it from my HTC Incredible with Android 2.2 the app loads fine, but there is no on-screen keyboard and so I cannot log in. I can see the blinking cursor inside the username and password text fields. I can switch between them. I can even hit the login button and see an authentication error!

According to Adobe this should Just Work. Any ideas? I wanna show off our spanking new app to strangers at the bus stop!

7
  • Here is a partial answer. If you need to show off your web app to perfect strangers, just set a different web browser to be the default one. xscope or dolphin should work fine with it (thought, you'll probably need to zoom in quite a bit before the input box gets the focus). I'll leave the programming answer to someone else. Jan 5, 2011 at 3:59
  • Tried Dolphin...didn't make a difference...gotta be Flash player on Android I think.
    – Dave
    Jan 5, 2011 at 4:44
  • Found a near duplicate with no answers: stackoverflow.com/questions/4007486/…
    – Dave
    Jan 5, 2011 at 5:13
  • I believe you will need to use TextField-based text input components, do you know if you are using those?
    – sshongru
    Jan 9, 2011 at 0:43
  • 1
    I don't believe spark text controls are TextField-based. Try using the mx text equivalents and see if that works.
    – sshongru
    Jan 15, 2011 at 23:52

6 Answers 6

2

Seems the problem is different implementations of the keyboard in the browser. See the comment from Adobe here as they shut the bug as unfixable: https://bugs.adobe.com/jira/browse/FP-5704

I have the same problems on a Galaxy S2 - though manually forcing the keyboard up here isn't an option as the address bar automatically gains focus.

1
  • Just 'fixed' the problem on my phone by installing the Gingerbread keyboard instead of the default Samsung one. Not a real solution if you want other people to use your app, but confirms the source of the problem.
    – xeno.be
    Jul 21, 2011 at 11:13
2

Mobile Text Input

Flash Player 10.1 provides support for use of native device virtual keyboards with TextField support if no physical keyboard is detected. A virtual keyboard is automatically raised and lowered in response to focus changes on text fields when editing text on mobile devices supporting a virtual keyboard to enable unobstructed and intuitive text editing. The focused text field is centered in the visible region of the page and appropriately zoomed/scrolled to ensure it is not obscured by the virtual keyboard. Upon screen rotation, incoming calls, or other system events, any already existing text input is retained. The virtual keyboard works with TextField but does not currently work with the Text Layout Framework or other Flash Text Engine text.

1
  • That's odd then, because I'm using TextField in my project, but I can't get it to invoke the keyboard on a Samsung Galaxy S2.
    – jowie
    Apr 18, 2012 at 10:34
1

The spark components in Flex 4 are not currently optimized for mobile. The next release of Flex codenamed "Hero" will provide mobile optimized skins for the spark TextInput/TextArea components. These skins are based on TextField and they are also optimized for performance with ActionScript skins and a more appropriate default size. Text support in the current Hero preview release is minimal, but the final release will be more robust, for example supporting scrolling in a TextArea. Check out the spec for more information: http://opensource.adobe.com/wiki/display/flexsdk/Mobile+Text+Components

It's probably worthwhile to note that the mobile features in Hero are designed with standalone mobile applications in mind, not browser-based applications. That said you might be able to grab those mobile skins and try using them in a browser-based Flex application compiled with Hero.

0
1

have you tried republishing your work strictly for 10.1? i believe that any applications which support versions of Flash prior to 10.1 are seen as Flash Lite on mobile devices, which may (or may not) be the problem.

it's worth a try.

2
  • Thanks for the suggestion. I went ahead and tried it (seem very plausible), but unfortunately didn't make a difference. :-(
    – Dave
    Jan 5, 2011 at 16:35
  • try testing your RIA as a standalone AIR application. it if works as AIR than the issue is probably a bug in the Flash 10.1 browser plug-in. i would also try to localize the problem by using different input fields. are you using a text input flex component? if so, try using just a basic AS3 TextField of type INPUT (or vice-versa). Jan 6, 2011 at 5:16
1

Not a programming solution, but long press on the menu button brings up the keyboard if it doesn't pop up by itself (at least on my HTC Desire, 2.2 android).

2
  • Incredibly, that actually worked. Had no idea you could manually force the keyboard to show up on Android. Now I can continue to use the Spark controls....thanks.
    – Dave
    Jan 21, 2011 at 17:01
  • This works great on the HTC devices I have used, but it's probably not functionality you want to rely on for your customers as I know that some Motorola devices don't support this and I believe the Samsung Galaxy Tab doesn't either.
    – sshongru
    Feb 13, 2011 at 22:09
1

Device: Kindle Fire

I had the same problem. My mathlab uses flash for homework assignments, and I could not access my keyboard for input. Until I found this.

  • Download and Install "Keyboardflash_1.0.0.apk" on your Android device.
  • go to the flash program in your browser
  • run the "Game Keyboard" app and click "Tap here to call out keyboard after exit"
  • return to your browser

You will notice I did not perform the direction the app gives you because the kindle fire is not compatible with those steps. Maybe it is with your device.

You may have trouble getting this to work with a browser app like "Dolphin"

Your Welcome :) and respect the developer

Gamepad is also on the android market.

Not the answer you're looking for? Browse other questions tagged or ask your own question.