Textfield not working in air for android

Hi,
I have a weird problem. An input text component that works in air for desktop refuses to work in an air for android application.
It draws on the screen as it should but i cant input text. Am i missing something fundamental?
It is kind of hard to log in if i cant enter credentials
Here is the code:
   idFmt1= new TextFormat("arial",18,0x000000);
   idFmt1.align="left";
   _inputText= new TextField();
   _inputText.defaultTextFormat = idFmt1;
   _inputText.x=150;
   _inputText.height = 35;
   _inputText.width= 150;
   _inputText.type = TextFieldType.INPUT;
   _inputText.background = true;
   _inputText.backgroundColor = 0xa0a0a0;
   _inputText.text = _initText;
   _inputText.tabEnabled = true;
   _inputText.tabIndex = 1;
   _inputText.displayAsPassword = false;
   _inputText.antiAliasType = flash.text.AntiAliasType.ADVANCED;
   _inputText.embedFonts = true;
   _inputText.alwaysShowSelection = true;
   _inputText.mouseEnabled=true;
   addChild(_inputText);

I can't seem to get anywhere with capturing text input! I set the "type" to TextFieldType.INPUT  but this is still ignored on both the desktop and the device. If I place an input textield on the scene in Flash, that works in so far as it brings up the Android keyboard - but then nothing you type is of any consequence.
What could I be missing?

Similar Messages

  • Netstream.close(); doesn't work on air for android?

    Hi,
    I'm building a video app for android with air and I cant stop netstream from streaming a video.
    When a video is playing the user can choose to move to the next video but the current video still streaming even when i call ns.close();. On the desktop it works.
    Is this a known bug? or am i doing something wrong...
    The code is the standart netstream method, and when i want to load a new video:
    ns.close();
    ns.play("some url");
    I need to solve this issue and the app is finished! please help!

    Further feedback regards this fix.  It certainly opens up video app development and allows for slick demos.
    However, since videos are not freezing up I can now see clearly the buffering that's going on which seems to be another area that needs attention... Any hints/feedback regards this would be appreciated.
    Specifically, I find a fair disconnect in behaviour between video playback on the desktop and on Android.  This may be because of Android design but this should be noted since it might lead another change at Adobe's end.
    The behavior is as follows (note that this includes my own created videos and videos obtained from the internet -- my videos work a little bit better and I know that one thing I usually do is CBR, constant bit rate which may help things) :
    on the desktop===>: 100%, all wireless network video streams buffer flawlessly... roughly speaking, about 20 seconds of video every second, plus if you seek to an unloaded part, the video patiently waits until that part is loaded
    on android===>: all wireless network video streams seem to have their own signature for buffering. Although many of the streams will buffer normal, maybe half buffer normally for 100 to 250 seconds of video data and then stop and wait for the playback to catch up, after which time they buffer slowly. This stop can therefore be 100+ seconds that no buffering is occuring. A few of the videos will even forget to continue buffering ( a netstream.buffer.empty is eventually fired and game over )  The behaviours are essentially repeatable for each video (I have my worst case video) although if you seek forward sometimes it will remember to resume buffering right away.   Another symptom is that unlike the desktop, you cannot seek to an unloaded part, instead you generate a nestream.seek.invalidtime and the video simply resumes (I actually workaround this as I suspect it causes problems for me if I don't).
    There are other discrepencies that I ask which is proper / better ?  ===> on desktop a pause does not interrupt buffering, while on Android a pause stops the buffering....====>   on desktop there seems to be a cache for the videos if you jump around between them while on Android everything is cleared out on the dispose()
    as mentioned above, any hints/feedback would be appreciated. I'm trying to relate this to other outstanding forum and outside forum related issues and still thinking the fail part might be an Android/hardware realtionship but not sure and analyzing.
    thanks.
    Message was edited by: hiteck7 4:53pm Friday

  • Flash drag and drop not working on Firefox for android browser

    Drag and drop functionality is not working using Firefox Browser for Android on tablet. We tested with flash action script 2.0 & 3.0 content, both have same issue. Specs of the tab and OS are as follows.
    Android - Kitkat 4.4.2
    Tab models - Lenovo A7600H and Samsung Tab4 T531
    Please refer to a previous case raised on the same issue here at this link (Case 1029615) - https://support.mozilla.org/en-US/questions/1029615
    Additionally, we observed that the object on which Drag and Drop event was triggered, is moving little bit when we double tap.
    Does Firefox provide any libraries to support Drag and Drop functionality on Flash? We are using Geekoview api to execute flash content in our app. Will the same support be provided in Geekoview as well?
    Are there other folks facing the same issue? Is there a solution or workaround to get this feature running?

    Flash on Android is no longer supported by Adobe. While Firefox does support basic functionality we mainly focus on legacy video applications. You may run into issues with Flash and Geckoview. I doubt we have any resources to support that configuration.

  • OnePlus One: hardware accelerated mp4/h.264 not working in Firefox for Android

    Videos being played via HTML5 player in Firefox for Android do not play correctly, because the hardware acceleration is not implemented correctly. Tested with latest version (14 oktober 2014); Fennec (33.0)
    It seems related to the GPU (Adreno 330). The OnePlus One has the same GPU as the LG G2, and that phone has the exact same issue, as you can see here: https://support.mozilla.org/nl/questions/1022029
    The videos play fine in Chrome for android and the also play fine in Firefox if you disable the hardware acceleration via:
    about:config -> stagefright.disable = true
    Can anyone please fix this?

    In addition: I've also tried it with the latest beta (Fennec 34.0).. Same result.

  • NavigateToURL not working with Air for iOS

    Hi,
      I have created a game in flash for iOS (iPad). The game works fine, but I am trying to call a URL on the click of a button.
    There is no response on click.
    Below is the code
    externalcallButton.addEventListener(MouseEvent.CLICK, moregames)
    private function moregames(e:MouseEvent){
         var urlReq = new URLRequest("www.example.com/iphonegames");
         navigateToURL(urlReq);
    Please help me on this...
    Regards
    Santosh Bhagat

    hi sanika thanks for reply
    i can open the URL in browser. I'm not getting any error while using navigateToURL. It is working when i publish it and test it on the desktop. But when i transfer it to ipad it is not working.

  • Embedded fonts not working in Air for ios

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

    hi
    am building an ActionScript mobile project 4.6 for ios and want to use embedded fonts for my app.
    we are using the swf method for embedding the fonts , after loading the xml and even got the embedded resourses from swf , the output is not showing the exact font used , instread it is displaying one of default ios fonts in place of it...
    here is the code of my embedded fonts and we are using TLF for text output:
    ....inside my loaded swf: -
    package
        import flash.display.Sprite;
    import flashx.textLayout.compose.ISWFContext;
    public class Slide1 extends Sprite implements ISWFContext
            [Embed(source="C:/WINDOWS/FONTS/ariblk.TTF", fontName="Arial Black", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+0062,U+006F,U+0064", mimeType="application/x-font")]
            public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                  if (returns)
                          return fn.apply(thisArg, argsArray);
                  fn.apply(thisArg, argsArray);
    please help asap!
    thanks

  • Air For Android - Full Screen not working

    Opened CS5.5 > Chose "Air For Android" which gave me a stage dimension of 480x800 default. I then created my app.
    I am using a Droid Bionic and testing my app on it. It will not go to full screen, regardless of how I am holding the Droid. When publishing, I clicked "Full Screen" and Portrait, Landscape, Auto Orientation, etc. I tried all of the publishing options, yet still there is white screen on the eastern and southern side of the screen.
    I have a picture on the main screen, and it fits perfectly within the 480x800 dimmensions when playing in Flash. After publishing to an APK file and testing it on Droid, I have that white space as mentioned, as if the stage size grew larger than the picture / app. I also shrank the stage(480x800) dimensions to to (340x600) , but still the same amount of white space. When I move the picture to the right a bit, and publish, it shows the white space on the left hand side of the stage. This can only mean that when I publish, the stage size grows but everything on the stage stays the same. 
    Any ideas?
    Thanks!

    I removed:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    from AS3 and it works better. Now there is even white space on the north and south side of the screen. Clicking "Full Screen" in the publish settings, makes a little more white space, which is weird. It as if now the stage is expanding its height, rather than its height and width due to me using the above code. Still, would like to get rid of that extra white space.
    Edit: It looks like the stage height grew by 60. If I expand the picture by 60, placing it on the stage at 0x and -30y, it fits fine on the bionic. I don't understand why this is happening, and scared that it may be different for each device.

  • Air for android - not connecting to lccs

    I created an as3 swf that connects to lccs. It works well. I'm using the 10.1 swc. I used the same code in Air for Android cs5 file. It doesn't give any errors but it will not connect to the lccs server. I put an event listener on and it gives an error "INVALID_INSTANCE:invalid_instance". Now that would leave me to believe my roomURL is not correct but it surely is. And the room connects successfully when in an as3 swf.
    Does the Air for Android cs5 strip out things or something? The error event listener worked on the android phone but it didn't connect. Anyone know why the android version wouldn't connect?

    Sample Code on how to use debug trace that Raff was mentioning
    In your codes applicationComplete or creationComplete event, please add this line
    DebugUtil.traceFunction = traceMessage;
    DebugUtil.suppressDebugTraces = true;
    and add this funtion
    private function traceMessage(message:String):void {
           TEXTAREA OR LOGGER .text += message + "\n";
    Thanks
    Arun

  • Activation fails when not anwsering an incoming call Air for Android

    Hi,
    I'm developing a game with Adobe AIR for Android; we are handling events for Deactivate (Pausing) / Activate (just tracing for now) of the game.
    It works OK when:  I press home button and then go back. When I get an incoming call and answer it. When I get an incoming call and reject it. They all activate the game when finished
    It doesn’t work when: I get an incoming call and I missed it (no answering, no rejection either) instead of activating the game again a black screen is showed (trace on Activate event is not fired either).
    Did anyone experience the same issue?
    Regards

    I tried the above case on Samsung S4(v4.2.2)(Currently I have with me) with latest AIR SDK available at http://www.adobe.com/devnet/air/air-sdk-download.html and I am getting the activate and deactivate event if I get an incoming call and I missed it. Below is the code snippet I used. Please update if you are using something different.
    stage.addEventListener(Event.ACTIVATE,onActivate);
    stage.addEventListener(Event.DEACTIVATE, onDeactivate);
    protected function onDeactivate(event:Event):void
    // TODO Auto-generated method stub
    trace("In the deactivate method..........");
    protected function onActivate(event:Event):void
    // TODO Auto-generated method stub
    trace("In the activate method...........");
    Could you please share the 3.7 version using adt -version command on either terminal or command promt. You can find adt at AIRSDK/bin folder.
    Regards,
    Nimit

  • APP created with Air for Android but doesn't work on the emulator for test - Help!

    When I create an application using Flash CS5.5>>> AIR FOR ANDROID.
    After creating a test page I go to publish settings and send the app on Emulator RELEASE ... The APP is loaded correctly but as soon as you start the emulator, give this error "The application XXnameappXX (process air.XXnameappXX) has stopped unexpectedly. Please try again" Help Please!

    Ok i've find this before "Adobe Flash CS5/AIK2.5/runtimes/air/android/emulator/Runtime.apk" and install it on android emulator! Now works all i hope! Thanks for your answer!

  • How can I use a file in flash cs6 that I made in flash cs5.5 air for android

    I have made an app in in air for android in flash cs5.5 air for android, and I want to edit it in cs6 and play it in cs6.
    But if I put Ctrl+Enter I got an error: createWin process failed with error 2: system couldn't find the file. I think the problem is that I'am using air for android 2.6 version in flash cs5.5 and version 3.2 in flash cs6. I have searched the web and found out that you can add older air versions using the sdk manager and I have tried it but first I get the error that the version of the sdk I am trying to install is not valid and after some files that I added to the sdk folder I get this error:Only SDK higher than version 3.4.2540 may be added.
    I there a possible way to update the air for android for an fla or apk? Or how can I let my originally file work fine in flash cs6??

    system couldn't find the file
    If you can´t get a more specific hint why your project can´t compile then I can think of some reasons theis error might occur
    1.You had files included besides the swf, like videos, audio files, xml files, that are not present in the place air expects them to be
    2.somewhere in your createWin functions there is a class import needed that isn`t present in 3.2 anymore, for example some classes or functions from classes that were valid in 2.6 are not any more in 3.2
    3. to achieve better eror logging, allow for debugging in the publishing options and see what specific lines in your code throw the error
    4.any air app needs a cert file, this needs to be created once, if you migrated to e new system it might be you never created that file which air expects to even begin the compiling process
    once you isolate the problem, report back

  • Adobe AIR for Android - GPU Mode - Bitmap Auto-Smoothing Issue

    Hi everyone
    I'm having a bit of an issue with the AS3 bitmap object. I'm currently developing an 8-bit style pixel game for AIR for Android.
    This game is being developed at a very low resolution and is being scaled up to maintain the charm of an old retro game.
    One of the methods I'm using is drawing pixels directly to bitmap objects and scaling the object up to create the old look.
    When testing on a mobile device, this works beautifully when you set the rendering method to Direct but when you change
    the render method to GPU the visuals go all blurry and anti-aliased (it's as if the bitmap is being smoothed out). The mini map
    for example is rendered using the setPixel method and then scaled up 9 times. Looks great on my PC but once I export it to my phone
    it looks absolutely awful! This is no good as I want to keep the clean, solid pixel look to maintain the the old 8-bit feel and obviously
    I'd like to stick to GPU mode due to it's speed.
    Like I said, this only happens once you test on a mobile device in GPU mode - it doesn't do it on my main desktop machine or
    in Direct mode. I already have the stage quality set to low and I've tried setting the bitmap's smoothing property to false but
    it does nothing.
    Does anyone have any suggestions as to how I can get around this?

    How about first blit your image to a small bitmapData, then draw it on a large bitmapData (9X larger)?
    Like,
    var small_bmd:BitmapData = new BitmapData(SMALL_WIDTH, SMALL_HEIGHT, false);
    var large_bmd:BitmapData = new BitmapData(SMALL_WIDTH * 9, SMALL_HEIGHT * 9, false);
    var bm:Bitmap = new Bitmap(large_bmd, PixelSnapping.NEVER, false);
    var blitRect:Rectangle = new Rectangle(0, 0, 9, 9);
    var i:uint, j:uint, blitColor:uint;
    small_bmd.draw(SOURCE_IMAGE);
    large_bmd.lock();
    for(j = 0; j < SMALL_HEIGHT; j++){
         for(i = 0; i < SMALL_WIDTH; i++){
              blitColor = small_bmd.getPixel(i, j);
              blitRect.x = i * 9;
              blitRect.y = j * 9;
              large_bmd.fillRect(blitRect, blitColor);
    large_bmd.unlock();
    Not sure if the code works or not, but hopefully this helps.

  • Partial wakelock in Adobe Air for Android

    I'm developing Adobe Air (for Android) application which is intended to be constantly on. App has event based operations. However, when phone enters to sleep mode app is able to perform only one or few events in a second which is not good enough. AIR's SystemIdleMode.KEEP_AWAKE -mode is not an alternative since it is too battery consuming.
    I'm looking for a solution where phone is allowed to go into sleep mode (screen is off) but still CPU performance is not drastically dropped. Not sure if Android's partial wakelock -mode does the job and is available via ANE?

    Well Im a bit puzzled now. I just created a quick AIR app using AIR13 for Android and did a DEACTIVATE test on the NativeApplication.nativeApplication property and used a TextField to "trace" out the frame rate when the app deactivated. The frame rate stayed at 24FPS the entire time. I turned the screen off, let it turn off, went to the home screen, and switched to other apps while the test app was still running. In all cases, the frame rate never dropped to 4FPS as indicated in Adobe's documentation. So it is either something a bug or feature of AIR13+ or it is how Android KitKat handles applications in the background. Im using an unlocked/stock Moto X running Android 4.4.3. The app also appends the getTimer() call to the end so you can see that it does change. Here is a link to the quick app I created: Dropbox - deactivate.apk
    I guess if you want to download that and test it out to see how it behaves on your device and let me know the results. What device and OS are you running?
    Below is the original message I started to type before I decided to create a quick app to test with. It may or may not still be relevant based on your results from my app test.
    If you are looking at just recording information, you could probably setup something on the Android/Java side that gets started when the app "sleeps" using the DEACTIVE event as a trigger to start the ANE side of things. Then when your app "wakes", you could use the ACTIVATE event to trigger a call to the ANE to pull all the data collected in the Java side back to AIR and stop the ANE data capture since the data capture would be back to being handled by AIR.

  • Why is debugging an AIR for Android on device via USB so awful?

    I've used Flash 8, Flash Pro CS4, CS5, CS5.5, and now CS6 and I have to say when it comes to debugging it is absolutely the worst environment I've ever worked in. Over the years the number of times I've successfully debugged an application can be counted on one hand. Really, its that bad. Flash will crash or stop responding. I place a breakpoint in the code and Flash will either: A) Ignore it, B) "Breakpoint not set; No executable code at line ###" C) Crash and burn. D) breakpoint turns on but can never be turned off.
    Its infuriating and maddening. After this much time why can't Adobe make the debugger work?
    Frankly, because of this I have to write ALOT of trace statements into my code.
    Has Adobe just given up on the debugger in Flash Pro? As a developer should I be trying to convince my company  to switch over to Flash Builder?
    For example, right now I'm trying to debug an AIR for Android 3.4.0.2540 via USB on a Motorola Droid 2. I can publish and run in debug mode and see all my trace statements just fine. But I know the instant I need to try to set a breakpoint I'm doomed. Or if my code gets in a race condition like right now. The breakpoints in the new code I added were ignored (see B above) and I can find no options in the Debug menu to break into my app and observe what code it is currently executing. My only option is to end the debug session.
    Can anyone comment on debugging in Flash Builder vs. Flash Pro? Is it any better?
    Can anyone suggest a solid development environement with debugging that supports Actionscript 3 or can compile it to some other language or object code that would allow me to reliably debug code?
    I'm sorry for venting like this. I like Actionscript 3 and I even like Flash Pro until it comes to debugging. But at this point I really need to consider other options so I can get some work done.

    Hi Chris,
    I also have an HTC Legend, and I'm trying to make some tutorials about publishing from Flash Builder to Android.
    I've notice this also, and I must say, it's a complete deception that AIR cannot support this phone, and certainly it seems that upgrading to the Android 2.2 was a bad option, since I defenitly was able to make a simple flash game, and some other exeperiments, and got them to work with AIR when this phone had Android 2.1
    If it runs on Android 2.1, maybe it was a an upgrade that make AIR incompatible with this device on Android 2.2. Is there any way of running it, maybe forcing to install a AIR version that works.
    I was starting to program on Flash Builder, and experimenting on my Legend, but now I stumbled on this.
    Thanks,
    Leonel

  • Cant install AIR for Android on HTC Legend

    Is Air for android compatible with the HTC Legend?
    I have a legend running Android 2.2, but the market will not allow me to install the app. I thought it might be a temporary error so I downloaded an APK from the web, it fails and says cannot install.
    The legend plays flash content in 2.2, so i cant see why AIR wouldnt be supported?
    Chris

    Hi Chris,
    I also have an HTC Legend, and I'm trying to make some tutorials about publishing from Flash Builder to Android.
    I've notice this also, and I must say, it's a complete deception that AIR cannot support this phone, and certainly it seems that upgrading to the Android 2.2 was a bad option, since I defenitly was able to make a simple flash game, and some other exeperiments, and got them to work with AIR when this phone had Android 2.1
    If it runs on Android 2.1, maybe it was a an upgrade that make AIR incompatible with this device on Android 2.2. Is there any way of running it, maybe forcing to install a AIR version that works.
    I was starting to program on Flash Builder, and experimenting on my Legend, but now I stumbled on this.
    Thanks,
    Leonel

Maybe you are looking for

  • Since updating to IOS5 and itunes 10.5 I'm having trouble with my playlists.

    I have my favorites playlist done by playcount.  It shows up just fine in Itunes, but on the ipod itself it is not showing up by playcount.  I have tried resyncing several times with no luck.  Any ideas what to try?

  • Work around for power PC program

    I purchased a book with CD ROM. It was supposed to work with Macs up to 10.6 but I keep getting a message that power PC is no longer supported. I called McGraw Hill and they claim Apple dropped the support after 10.6. Is there a work around?

  • Materialized views are showing up under Tables in SQL developer  2.1.0.63

    Please, Is there any setting to not display materialized view objects under the Tables in sql developer 2.1.0.63 ? This was not happening in previous versions. Thanks.

  • FMS Limit Domain Access??

    How do you limit access to FMS app instances from a certain domain? For example, if I only want example.com/file.swf to create an app instance and run - but if I try localhost/file.swf or otherdomain.com/file.swf it will not? Thank you.

  • How to use to_date for this case?

    Hi, I bind parameters in java code. The param type in java is Timestamp and the data type in table is date. Here is the sql section printted in log: 2004-08-01 10:00:00.0 <= table.datetime Why there is a ".0" after second? And how to use to_date to c