SoftKeyboardBehavior not panning on Android

Hello all,
I've been scratching my head with this for a while now and think I need to ask for help.
I have a TextField which is set to TextFieldType.INPUT. On Apple devices, when a user clicks on this text field, it focuses in on the text field like we'd expect it to, however on Android the soft keyboard appears over the text field making input awkward.
What I've tried so far:
Explicitly setting: <softKeyboardBehavior>pan</softKeyboardBehavior>
var locToGlob:Point = _textInput.localToGlobal(0,0);
this._textInput.softKeyboardInputAreaOfInterest = new Rectangle(locToGlob.x,locToGlob.y,_textInput.width ,_textInput.height);
But it just seems to completely ignore softKeyboardInputAreaOfInterest.
Does anybody know why this might be? I'm using AIR 4.0.
Thank you in advance for any help anyone may be able to offer.

Hi Andrew,
I haven't looked into this in a long while, so things may have changed since, but the last time I delt with this, I ended up disabling sofkeyboard behavior on both platforms, and handling my own offsetting ( via a tween ) of the Sprite containing the text field, so that the editable textfield would wind up above the keyboard.
On both platforms ( iOS + Android ), add the following in the manifest:
<softKeyboardBehavior>none</softKeyboardBehavior>
Here are the main bits code I used to handle this, to give you an idea.  Note: _softKeyboardDisplacer is my own tween class, but this would work with the regular Tween class as well.
        private var _searchTF:TextField;
        private var _softKeyboardDisplacer:SimpleTween; // displaces _categoriesListSP when the soft keyboard is called
        private var _softKeyboard:Boolean; // indicates if the soft keyboard is currently on or not
        private function initSearchField():void
            // search input text field
            var searchTFT:TextFormat = new TextFormat(Boolean(CONFIG::IOS) ? "Verdana" : "VerdanaFont", 30 * SM.UI_SCALE_800, 0x000000, true); // Note: "Verdana" is one of the system fonts on iOS devices.    Using the embedded version doesn't work for input text fields on iOS.
            _searchTF = Assets.getInputTF(0.7 * SM.stageWidth, NaN, searchTFT);
            with( _searchTF )
                addEventListener(FocusEvent.FOCUS_IN, onSoftKeyboardActivate, false, 0, true);
                addEventListener(FocusEvent.FOCUS_OUT, onSoftKeyboardDeactivate, false, 0, true);
            Align.align(_dictionaryCenter, _searchTF, Align.CENTER_VERT, 0, Align.CENTER_HORIZ, 0);
            _categoriesListSP.addChild( _searchTF );
            // Add soft keyboard listener
            _softKeyboardDisplacer = new SimpleTween(_categoriesListSP, "y", Interp.cubic, 0, 1, 0.3, true);
            _softKeyboardDisplacer.addEventListener(SimpleTweenEvent.MOTION_CHANGE, onSoftKeyboardDisplacerMotionChange, false, 0, true);
        private function onSoftKeyboardActivate(evt:FocusEvent):void
            _softKeyboard = true;
            _searchSuccessful = false;
            // open soft keyboard
            evt.target.requestSoftKeyboard(); // needed on Android, but doesn't work on iOS
            stage.focus = evt.target as InteractiveObject;
            var searchTFBounds:Rectangle = _searchTF.getBounds(stage);
            var finishY:Number = _categoriesListSP.y - ( (searchTFBounds.bottom - SM.stageHeight_d2 ) + SM.stageHeight * 0.05 );
            _softKeyboardDisplacer.stop();   
            _softKeyboardDisplacer.begin = _categoriesListSP.y;
            _softKeyboardDisplacer.finish = finishY;               
            _softKeyboardDisplacer.start();
        private function onSoftKeyboardDeactivate(evt:FocusEvent):void
            _softKeyboard = false;
            // do the search
            lookFor( _searchTF.text );
            if (!_searchSuccessful)
                _softKeyboardDisplacer.stop();
                _softKeyboardDisplacer.begin = _categoriesListSP.y;
                _softKeyboardDisplacer.finish = 0;           
                _softKeyboardDisplacer.start();
        private function toggleSoftKeyboard():void
            if (!_softKeyboard)
                // note: no need to go to the home page, bc _softKeyboardDisplacer will go there as soon as
                //the soft keyboard is activated (via onSoftKeyboardActivate() )
                // Below: requestSoftKeyboard() is needed on Android to bring-up soft keyboard,
                // but doesn't work on iOS ( hence the redundant stage.focus = _searchTF, below )
                _searchTF.requestSoftKeyboard();
                stage.focus = _searchTF;
            else closeSoftKeyboard();
        private function closeSoftKeyboard():void
            stage.focus = null; // this will close the soft keyboard
            _softKeyboard = false;
Cheers.

Similar Messages

  • Content is not Panning while softkeyboard appears in GPU and Direct Mode (Adobe Air SDK 4.0.0.1390)

    Hi,
    My content is not panning while softkeyboard appears in GPU and Direct Mode(I have placed my input textfield at the bottom of the screen) it is working fine with the CPU and AUTO Mode. I am using Air sdk v 4.0.0.1390. I have checked my manifest file also and have added '<softKeyboardBehavior>pan</softKeyboardBehavior>' still it is not panning my content while keyboard appears.
    Has anybody faced this problem earlier?
    (On Android i am getting this problem on iOS it is working fine)

    Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include some sample code or a sample application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL so that others effected can add their comments and votes.
    Thanks,
    Chris

  • Video not appearing in Android folio

    Hi all,
    Strange problem with a web overlay and streaming vid in an Android folio. Here's the story;
    Ive placed a web content overlay on a page by itself. When viewed in the Android viewer, the audio track of the video plays, but no video appears.
    I can view the video successfully in the tablet's (Xoom) browser. I don't know what the encoding specs are for the video, but it works perfectly on the iPad version of the folio. It also displays properly in the Content Viewer on my laptop.
    Mind you, this isnt an inline audio & video -- this is streaming, using a web content overlay. So the "fullscreen" setting work  around doesnt apply that i know.
    Thanks in advance for any help!

    Confirmed. Avoid web overlay with streaming video for the time being.
    Ha. Did more digging around and hit this little nugget. So does this mean what Im trying to do isnt supported? Can a Bob please confirm?
    Features not supported in Android Viewer
    Some of the features that work in the iPad Viewer are not supported in the Android Viewer.
    Panorama overlays, inline videos, right-edge binding, and pan & zoom PDF articles are not supported.
    Web Content overlays and HTML articles are not fully supported.

  • July 2014 version is no working any more in my le pan tablet. android 2.2 armv7 cpu

    Hi,
    I love mozilla, i have been using Firefox in my old Le Pan tablet for long time. Something happen, may be an automatic upgrade now it doesnt start, i get a black screen when i launch the app. Another weird thing is the icon is the generic android icon not the firefox one.
    Le Pan have android 2.2, cpu arm v7.
    If is now not supported, how can I get the older version.
    thanks in advance for your help

    Hi pelainux,
    Thank you for your your question and I understand that Firefox for Android shows up as a black screen on your tablet. Please try to use an olderr version of Firefox or update the Android tablet to 2.3. Android version 2.2 had an end of life support in this last release of Firefox.
    If you have any questions on how to do this you may have to find it in the ftp site [[Install an older version of Firefox]]

  • "Flash Player" will not work on Android 4.0.3!

    I recently purchased  new Samsung tablet 2 (10.1) which operates on Android 4.0.3 (Ice Cream Sandwich)
    I have since found out that “Flash Player” will not work on Android 4.0.3
    (Ice Cream Sandwich) as adobe is no longer supporting android OS above 4.0
    This means I now have many “apps” that I can not us because they require
    “Flash” to operate!
    Can you assist with this problem?
    Is there a patch I can buy to allow flash to work on Android 4.0.3?

    Moving this discussion to the Installing Flash Player forum.

  • My MacBook Pro does not recognize my Android Incredible 2 cell phone and I can not transfer my photos from my cell phoen to my Mac. I was able to do this in the past, but can no longer do so. i havenot upgraded to any new software.

    My MacBook Pro does not recognize my Android Incrdible 2 cell phone and therefore I can not transfer any photos from my cell phone to my Mac. I was able to do this in the past, but can not do so now. I have not upgraded to any new software. My USB cable is plugged in properly and I just get an error message -- "No Android Device Found". What could be the problem?

    I had the same issue with the Galaxy S4 trying to see what the hype was about and was my first and last android phone. With that being said unfortunately it is a hit or miss with the Mac recognizing an android device or not.  It worked perfectly fine the first time around and then it stopped working for no apparent reason. Through trial and error nothing I did solved the issue.   I did however plug it in my Mac and left it connected for about 30-40 min to charge for a bit and all of the sudden it recognizes the phone. So I just launched Android File Transfer and everything else became fluid after that.    I have no explanation as to why it happened that way, but what I gathered from this is maybe you just have to let it sit for a minute while plugged in before the Mac recognizes it, after all they are opposing software.  On a side note this is why I will always be an apple user, Iphones and the like never have this problem

  • Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Why the buttons created by Acrobat XI in window do not work in android mobile or ipod touch?

    Hi,
    Could you please send us a test file which has those form buttons? Please email that file to us at DL-adobereader-android <[email protected]>
    Thanks,
    - Reader Mobile team

  • Not starting - for Android - as supplied with Acer Aspire One D255

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/886204''
    Download'''bold text''' Not starting - for Android - as supplied with Acer Aspire One D255

    Many thanks for a reply. It's good to get some feedback at least. I must admit I won't be too concerned if it's not compatible as I've since migrated to more useful tablet devices. This thing was always a bit of a mistake, especially with the annoyingly useless android bolt on. But as I use it for the occasional larger screen benefit and printer link, it would be good to have the benefit of latest MS. It still raises the question of why Acer at least can't provide a definitive list. After all there must be many other idiots like me that bought one? Thanks again
    [subject line edited to reflect new topic]

  • Odata webservice post method is not working in Android Lollipop?

    Hi All,
               I have a odata posting webservice that is working fine in Android Kitkat version but that same service is not working in Android Lollipop version. please assist me.

    Any errors, exceptions, etc?

  • Why is NFC not available in android 4.0 update???

    Why is NFC not available in android 4.0 update???
    Solved!
    Go to Solution.

    Nopes, can you link it to me ?
    Few galaxies ( s2 ) have NFC chips and few not...... but now they have released galaxy S3 and that is NFC capable
    Its really not possible to make a device NFC capable by upgrading software
    Device needs to have NFC chip
    Discussion guidelines.
    Message me or any other moderator to seek help regarding moderation.

  • It is not rotating at Android 2.3

    Hello.
    I started using Edge Animate CC recently.
    It is version 2.0.1.268.25632.
    I put the image on the stage.
    It was rotated 45 degrees by operating the property.
    Publish was carried out.
    It was confirmed by Android 2.3, but it was not spinning.
    Android 4 is indeed spinning.
    I want to rotate in Android2.3, but What should I do?
    Thanks in advance.

    Hi, elainefinnell
    Thank you for reply.
    I made a test program.
    Would you please make your check?
    (1)Edge Animate
    http://pleiades.s601.xrea.com/q/edge_animate_cc/android23rotate/edge_animate.zip
    This does not rotate.
    (2)This is the code that you entered manually
    http://pleiades.s601.xrea.com/q/edge_animate_cc/android23rotate/css.zip
    http://pleiades.s601.xrea.com/q/edge_animate_cc/android23rotate/jquery.zip
    This rotation.
    Would you please tell me how to solve the problem.

  • D/L Not starting - for Android - as supplied with Acer Aspire One D255

    D/L Not starting - for Android - as supplied with Acer Aspire One D255

    Of course within a couple of hours of this post I figured it out.
    I went to /etc/conf.d/gpm and added "-2" for two button mouse.
    GPM_ARGS="-2 -m /sys/devices/platform/i8042/serio2/input/input8""
    Now I can paste by simultaneously clicking the left/right buttons.
    rs

  • Air mobile encryptedlocalstore not working at android

    hi,
    i have a problem in my mobile application
    i use encryptedlocalstore to store user id and password and packaged apk with captive-runtime
    but some device without adobe air, store and get data with encrypedlocalstore not working
    when i install adobe air at this device, encryptedlocalstore working.
    it bug with packing apk captive-runtime?
    i use flash builder 4.6 and air sdk 3.1

    Just check the reviews on the Google Play store. Tons of people reporting probelms with the update to Android 5.0
    Tye Bandy February 11, 2015
    Remote doesn't work No longer has remote feature after Lollipop update to Galaxy S5
    Mike de Gouveia February 8, 2015 
    Not compatible with Android L This was an OK app before I updated my S5 to lollipop. It was a bit glitchy with scheduling recordings and scrolling through TV listings before, but now it is just terrible and does not even allow me to use the app as a remote control and is always crashing. I'm keeping the app because I'm hopeful that they will resolve the compatibility issues because it is pretty convenient having an app running off the WiFi to control the DVR. I will submit a new review once they do.
    Robert DeNuto February 9, 2015
    "restore to factory settings and try again." I contacted FiOS support because after updating my S5 to Lollipop, the app would no longer recognize that I was connected to my FiOS router. As a result, I couldn't change the channels on my FiOS set top box or watch FiOS programs on my phone
    Juston Ling
    Please fix the Lollipop S5 issue The remote portion is the only reason to have this app, and since it had been rendered useless ever since Lollipop was pushed - I have to rate 1 star. Once fixed I will gladly update
    Len S. February 12, 2015
    Remote don't work on App

  • PS CS5 Can not pan nor scrubby nor reset to default

    Hello,
    RE: PS CS5 Extended
    I have a 64x HP duo core with the latest updates of my NVIDEA GeForce 6150 LE video driver and with PS stating "Your applications are up-to-date".  I have three problems that I believe are all interelated.
    1. I can not pan my drawing.  Nor do I have side bars showing that I can ban.
    2. I can not use scrubby.  It is "greyed out".
    3. Nor will PS reset to default settings using "shift-ctrl-alt" when retarting PS.
    One note, I do not think I had problems (1) prior to updating PS with it latest revision.
    Thanks in advance  for your help.
    Regards,
    Raymond

    I'll go out on a limb and guess that Photoshop CS5 is not enabling OpenGL drawing.  Check Edit - Preferences - Performance to be sure.
    Video driver updates can sometimes correct this, but your nVidia card is simply ancient, so I don't suspect you're going to ever get the OpenGL-based features to work with it.  It rates under 50 on a benchmark for which at least 500 is a score you want to see for decent Photoshop performance.
    I was just down at CompUSA yesterday, and I saw bunches of video cards that would work great with Photoshop, some of which were under $60.
    -Noel

  • Adobe Air is NOT at the android market

    Hi, I'm having big problems when trying to install adobe air for android.
    It's not at the android market. I tried scanning a bar code, searching with the phone, downloading an Air app that directs you to the market and searching in my pc in google, but all the links go to the same place: no Air.
    I also tried installing the apk that comes with the Air SDK but it tells me that I have an older version of something.
    Does anyone have any idea of what could be wrong?
    Thanks in advance, I'm quite desperate, I have a Motorola Droid and some games to make!

    The Android Market only shows applications that are compatible with your phone. I don't know the history of the Droid, is it possible that you have an older version that doesn't meet the minimum system requirements?
    http://www.adobe.com/products/air/systemreqs/

Maybe you are looking for

  • T-SQL TechNet Guru News: October Winners Announced

    All the votes are in!  And below are the results for the TechNet Guru Awards, October 2014 !!!! For a full list of winners, see the full blog post, as runners up had to be removed from this post to fit the forum max length restrictions.  BizTalk Tech

  • Why do music videos no longer show up properly?

    After updating to OS5 I notice that music videos no longer show up properly.   I have most of mine in playlists, and it show the songs, but only plays the music, not the video?   When I view them in 'Videos' I have no option to sort or show them in a

  • SPA112 not picking up firmware

    Hi, about 60-70% of the SPA112s that I have deployed are not requesting firmware even after it picks up a new upgrade rule. The current firmware they are running is 1.2.0 (028). The firmware we are trying to upgrade to is 1.2.1 (004). I have checked

  • Problem in adding a field in infospoke table

    Hello, I have an infospoke ZSOCOMMN in BW 3.5 whose datasource is infocube ZSD_C61 and the db table generated is /BIC/OHZSOCOMMN . The requirement is to add a field ZEND_UAM( End User Account Manager ) in the above infospoke table. This field ZEND_UA

  • Error RFC Idoc Inbound: Message E0(285)

    This is a message into trx SM21: While reading the first record to process the input file  IDoc & & v1, there was an error. Check the file & & v1. Also check the meter protocol that allows the state of processing the file in question. The error may i