AIR app on Android for live chat crashes

No matter which streaming server I use, I regularly have a crash. My scenario is:
One side is on browser on PC, the other side is on android air app. Application is receiving a live stream and publishing a live stream at the same time, using two different Netstreams. Half of the time the application crashes. Crashes are rearly occuring during chat, but most of the time after a chat session is ended, and some time after netstreams are closed. There is no exceptions.
If I run the same AIR application on Windows Desktop, no problem occurs.
My application also records video and views recorded video. No problem occurs there. So, play("recorded.flv") and publish("someFLV", "record") has no problems.
When it comes to live streaming, problem occurs.
I use netstream.buffer = 0 for publishing live content, and netstream.buffer with its default value for playing live content.
When chat ends, I detach camera and microphone from netstream, remove eventlisteners from netstream, remove camera from Video object, set microphone and camera to null.
I tried closing and not closing netstreams, but nothing changed.
I tried sound only and video only streams on both sides, but nothing changed.
I compiled with AIR on Android 2.6 and 3.0, but nothing changed.
I tried compiling with Flash Builder Burrito and Flash Builder 4.5, but nothing changed.
I investigated Android adb logcats, but nothing useful is traced.
Application just crashes without any message or warning.
Is there a bug for playing and receiving live content at the same time on AIR on Android?

For those who are interested in this crash, I'll give a few more experiments and hope for an answer.
I investigated a few adb logcat deeper and noticed something about AIR runtime:
1. The crash does not happen all time, but randomly. Followings will explain the reason.
2. If I try sound-only streams, and if app crashes after disposing resources, logcat has messages related to Android microphone. After painful research, I found that logs mean: "someone requested microphone data, but it didn't consume microphone data fast enough."
3. If I try video-only streams, and if app crashes after disposing resources, logcat has messages related to Android camera. After painful research, I found that logs mean: "someone requested camera data, but it didn't consume microphone data fast enough."
So, maybe, only maybe, because AIR doesn not support multi-threading, when we dispose a microphone or a netstream, AIR stops receiving microphone data immediately, but until our calling function ends its execution, AIR does not notify Android OS about dispose. So, in Android's point of view, it sends microphone data but nobody consumes that data, thus nobody empties Android's buffer. Hence Android OS thinks that something is wrong and kills AIR application. That may explain why we get crash randomly: If Android's microphone, or camera, buffer is nearly empty when we dispose, buffer is not get filled until we fully dispose resources and everything is fine. But if the buffer is nearly full when we call dispose, buffer gets filled to its maximum until we finish our disposing and Android OS suspects about buffer and AIR app is killed with a signal 11, a segmentation fault.
This is only a theory, and I found one evidence that supports the theory: Android developers are suggested not to use camera and microphone resources directly. Instead, they are advised to create another thread to consume camera and microphone and use that thread for their needs. That is impossible in AIR as AIR don't have multi-threading.
Well, is there anybody now who has an idea?

Similar Messages

  • Associate file extension with air app on Android

    Hi,
    I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
    In the .xml-file for the app, under the <android> tag I have written:
    <activity>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />
                <data android:pathPattern=".*\\.csml" />
                <data android:host="*" />
            </intent-filter>
        </activity>
    Does anyone have an idea how this could be solved?
    Thanks in advance
    Jens

    If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
    See also:
    http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
    http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension

  • Rotate the front camera in Android for video chat app

    Hi,
      I developing a video chat app on Android with Adobe AIR 3.6 beta.
    I currently using the Camera, Microsphone and Video classes. I panning to use StageVideo next
    I understand fully that Adobe has stated that when using the Camera do it in Landscape mode.
    Problem is my compnay wants it in Portrait mode only and is not interested in landscape video chatting app at all!
    I can do this in native Java code with 6 lines of code by rotateing the camera,
    but it seems impossible on Adobe Air mobile.
    What I tried
    a) Rotate the display object contain the video which has my camera attached
    Result: It works! It only solves half my problem as the video is still being transmitted  in landscape mode
    b) Using Matrix and transform
    Result. Does not work correctly and does not help as the video is still being transmitted in landscape mode
    What I am considering
    a) Build an ActionScript Extension that calls native java code that rotates the camera
    Boy is this really nessscary?
    b) Create another Netstream and copy the video stream contains the landscape vidoe feed into an bytearray and then
    transpose the array and feed it into a newly created Portrit video feed!
    Is this evan technically possible?
    I understand peope will say that just accept landscape but that not an option right now
    Any hep is greatly appreciated. I cannot be the first engineer that wants a Portriat locked video chatting appp on Android using Adobe AIR

    I ran into this very same problem building a video conf app that could rotate in any direction on the device.
    I ended up doing what you tried for A, but took it a little further. I injected information into the stream I was sending so I would know what to do on the other side.... information including not only the oriention of the video, but orientation of the device as well as the Microphone activity level. (because i needed to know everyones mic levels on all devices).
    Yes this is a workaround but at least it's a solution.
    something like this....
    netsream.send("onActivity", {micActivity:this._microphone.activityLevel});

  • Can I run an html/javascript AIR app on Android or iOS?

    Is it possible to compile an already-existing HTML/javascript app to install/run it on any mobile OS (Android or iOS, in particular)? I haven't found anything that says it's possible, only instructions for doing it with a Flash/Flex based AIR app.
    I have a large html/javascript app, with a lot of value put into it, and my client would like to be able to package it for use on tablets. Ideally, I'd like to be able to not only have it run there, but also be able to "hide" the html/js code from prying eyes, if there's a way to do that.
    Thanks much in advance... I've done considerable research trying to get an answer to these questions.
    - Jack

    Hi Ross,
    the certificate used for APK files is a self-signed one so at this point, no need to use Google Console yet.
    See http://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobil e.html (Create a certificate file using Keytool)
    Testing is only a matter of installing the APK file on the device where you should be able to test.
    The Android developer account will be useful for testing if you have in-app purchases matching 'retail' folios.

  • Package AIR app as Appx for Windows Store

    Has anyone successfully packaged as AIR app as an Appx (or similar) to submit to the Windows Play Store?
    The process looks relatively straight forward (To make a Metro Appx Package from scratch, you must first …), but not so fast...
    The first step is creating an AppxManifest.xml file, and here I get stuck:
    <Applications>
      <Application Id="MyAppId"
      Executable="MyApp.exe"
      EntryPoint="MyApp.App">
    I've created my app as signed application with native runtime.  The value for Executable is my app's executable.  But what should I put as the EntryPoint?  Does an AIR app even have an EntryPoint?  MakeAppx.exe will not run if EntryPoint is left out or left blank.
    Thanks!

    this is an old post, but any luck? i know on android there's an appentry, so maybe it's the same?

  • How to set an AIR app on Android to handle filetype

    I've been trying to make my app as default handler of a file type on Android. I have the as3 code to open the file (via InvokeEvent.INVOKE) but I can't seem to be able to register the app as a handler.
    I added this code in the app XML:
      <android>
        <manifestAdditions>
          <![CDATA[
            <manifest android:installLocation="auto">
              <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" />
              <uses-permission android:name="android.permission.INTERNET"/>
              <uses-permission android:name="android.permission.WAKE_LOCK"/>
              <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
              <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            </manifest>
            <intent-filter>
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
              <data
                android:host=""
                android:mimeType="*/*"
                android:pathPattern=".*\\.pgn"
                android:scheme="file"
              ></data>
            </intent-filter>
        ]]>
        </manifestAdditions>
      </android>
    I also tried with
    <data android:mimeType="*/*" />
    <data android:pathPattern="*.*\\.pgn" />
    What am I doing wrong?

    You're going about it the wrong way. Native development allows you to find package names of installed apps and request they start using the Intent system with startActivity (once you verify the app exists), see here:
    http://developer.android.com/training/basics/intents/sending.html
    However that's native. You'll either need to find an existing native extension or create one yourself.
    That aside facebook may supply you with the proper scheme to call to launch the app in which case it would probably prompt you to run facebook in the app or in a browser. More info on defining those schemes here with code:
    http://www.riaspace.com/2011/08/defining-custom-url-schemes-for-your-air-mobile-applicatio ns/

  • Flash Builder 4.7 won't debug air app on Android devices  anymore

    Hi there,
    A strange thing happened today to my Flash Builer 4.7 installation on OS 10.8.5 : it suddenly refused installing and debugging AIR apps.
    At -the famous- 57% of compilation completion I can see the "installing app on device" message, but nothing happens then, and the one minute connection to app timeout is finally triggered.
    I had a look at other threads dealing with this problem here http://forums.adobe.com/thread/1154269 and here http://www.androidpolice.com/2013/02/12/new-android-4-2-2-feature-usb-debug-whitelist-prev ents-adb-savvy-thieves-from-stealing-your-data-in-some-situations/ and I downloaded the latets Android SDK and replaced a bunch of files into the /Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/android/bin folder but nothing worked.
    The fun side of the issue is that yesterday it worked, and this morning it did not worked anymore, but I swear I did not ugraded Android on my phone nor I upgraded AIR SDK in FLash Builder or OS X. The Android phone is the same as usual, a Nexus 4 with Android 4.3, that I upgraded 1 month ago.
    I can't debug my Android app anymore, this drives me crazy, and I spent the day trying to find a solution.
    Do you guys had a similar problem ?

    My mistake...
    There was a typo into the XML application descriptor, that prevented the app to install properly on the device.
    Precisely, it wasn't a typo but raher a malformed <intent-filter> node. I launched adb tool from the console with adb install MyApp.apk command, and I saw this : Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] in the terminal. From here it was easy to find the culprit.
    What would be cool is to have this feature inside the Flash Builder's Console panel.

  • Changing personal info for live chat

    Where do I go to change my personal information so I can access Livechat? It says that I have a Shuffle and an imac. I own neither. I can't find where to change this information and it is driving me crazy. Thanks!

    Do you mean that you were on this page?:
    Apple - Support - Chat
    ..but wouldn't select from either the "iMac" option or the "iPod Shuffle" option, because you owned neither product?
    If so, this is because Apple only offers Live-Chat Support for the iMacs and the iPod Shuffles; no other model or type of Apple product.
    Those two possible selections ("iPod Shuffle" or "iMac") do not have to do with your personal info on your Apple ID account, or anything else.
    If that is not the case, please post back and correct me if I'm wrong with this assessment.
    -Kylene

  • My app (GUI Designer for iPad) is crashing, how should I fix this problem?

    I use this app, and sometimes it crashe when I click some buttons.

    Here are the steps I take when an app misbehaves. If the first step doesn't work I go to the next.
    1. Quit the app and try it again. Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app.
    2. Quit the app and then reset the device. Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. The reset the device. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
    3. Quit the app and then delete it. Then reset the iPad and download a fresh copy of the app. To delete an app tap an hold on it until it begins to jiggle and display an X. Tap the X and confirm that you want to delete the app. You can download a new copy of the app without paying for it again as long as you are using the same Apple ID that you used when you first downloaded the app.
    4. If none of the above work contact the developer of the app to find out if they are aware of the problems and whether an update will be offered soon.

  • Is Stage3d available for an Air app on Android?

    hello guys~ i have seen some cool videos about Molehill demo on android device ,
    but when i start to learn stage3d and adobe air , i hear someone say stage3d is not available for mobile at this moment (only work on desktop).
    i read adobe air3.0 / air3.1 realease notes and stage3d documents but no information about whether the stage3d hardware accelerated rendering is avaiable right now on android or not .
    could any one tell me ? thanks!!

    As you know Stage3D uses the GPU of the underlying machine. It is therefore a seriously low-level piece of middleware, full of custom assembly language code for every single brand of GPU, of which there are a few in the mobile space.
    Perhaps you consider AIR something other than middleware, that is the best i could do. Anyway Adobe staff are busting their rears making it, but it is not yet released. No one will give a date because until it passes through Quality Assurance it cannot ship. Adobe is loathe to release a buggy version because they will get pounded for it. I have no relationship with Adobe, nor any secret source, but I would venture that it will be June 2012 before we see Android / iOS stage3d availability at the earliest.
    should be great, we haven't seen that many good 3D middleware solutions, and the adobe one looks promising.

  • Air app on Android fullscreen

    I'm building an AIR mobile app for android >= 4.0. I must be missing something or doing something wrong because no mater that i do, i can't get the fullscreen working rigth.
    The tablet bottom bar always shows up. In current version the bar only shows 3 dots and have somekind of alpha but it doesn't allow me to draw above it or below it.
    In my app description XML i have:
    <initialWindow>
    <aspectRatio>landscape</aspectRatio>
    <renderMode>direct</renderMode>
    <autoOrients>false</autoOrients>
    <fullScreen>true</fullScreen>
    </initialWindow>
    And the bar is still there
    Tried set the fullscreen to false and then:
    stage.fullScreenSourceRect = new Rectangle(0,0,1280,768);//Capabilities.screenResolutionX, Capabilities.screenResolutionY);
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    No effect... the damn bar is still there.
    Using FB 4.7, Air 3.8 and -swf-version=21
    Any help or a pillow to put between the head and the wall would be very apreciated!!
    Thanks

    The same here... I tried this:
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.showDefaultContextMenu = false;
    and:
    <fullScreen>true</fullScreen>
    but it doesn't work.
    I have rooted device (Tracer OVO 1.2 tablet, Android ICS 4.0.3) with three physical (touchable) navigation buttons on the right side.
    Using Flash CS6, Air 3.9.
    I'm sure it's possible because other apps and games run in fullscreen like a charm.
    Is ANY way (maybe third party apps) to get rid of that damn staus bar?

  • Unable to access SD Card / External storage from Flash builder / air app in android KitKat.

    Hi
    We are using Adobe Flash builder 4.7 to create an Android app for Andoid Kit kat platform.
    getDirectoryListing() function returns only one folder of SD card i.e. LOST.DIR. It does not return any other directory or file of the SD card.
    Regards
    Sachin

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"
                            width="600" height="600">
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Label text="Hello World"/>
    </s:Application>

  • How to compile the AIR app to android emulator

    How to compile the AIR application to run on emulator ?
    May be use the 'adb' command line ?

    -target The type of package to create. The supported package types are:
    air — an AIR package. “air” is the default value and the -target flag does not need to be specified when creating AIR or AIRI files.
    airn — a native application package for devices in the extended television profile.
    native — a native desktop installer. The type of file produced is the native installation format of the operating system on which the command is run:
    EXE — Windows
    DMG — Mac
    DEB — Ubuntu Linux
    RPM — Fedora or OpenSuse Linux
    apk — an Android package. A package produced with this target can only be installed on an Android device, not an emulator.
    apk-debug — an Android package with extra debugging information. (The SWF files in the application must also be compiled with debugging support.)
    apk-emulator — an Android package for use on an emulator without debugging support. (Use the apk-debug target to permit debugging on both emulators and devices.)
    Use the value as per your need. The you can use adb to push the packaged apk to your emulator.

  • Yahoo App on Android for 12 Year Old

    Just bought 12 year old son shiny new phone and have just installed the yahoo app so that he can read his emails. However, when I enter his details it says he needs to be over 13. Not sure why a 12 year old isn't able to have his emails on phone.
    Is there any way around this, I've never keyed any kind of parental lock and can't presently find a way around this. Are there any override options, ie change his date of birth?

    It's down to American laws.  They don't have the same data protection laws as in the EU, but they do have strict limits as to what data companies may gather on under 13's.  Since Yahoo is an American company, their response (like many other companies) is to refuse service to anyone under 13.
    The usual solution is to lie about your age.

  • Looking for live chat support

    I Can't send a pic from my photos, as a txt

    You should start your own thread for this. You replied to a thread that is over 1 1/2 years old and has been marked as solved. It may not get many views. I don't use keychain, so, I am sorry I can't offer advice on that part.

Maybe you are looking for

  • "Disk error" message on install

    I have a CD for Windows XP Pro. I ran the BootCamp partition and the first part went smoothly. After I restarted to finish the install, I got this message in a DOS formatted screen... Disk error Press any key to restart When I press a key, nothing ha

  • Controlling iTunes from within Keynote 2?

    Is it possible to control iTunes from within Keynote, when I'm using the presentation tools? I haven't been able to make it work, and it is an essential part of being able to use Keynote in my lectures. It would be nice to switch from Powerpoint. Rig

  • Online chat, Aug. 12, n the Portlet Specification (JSR 168)

    The Portlet Specification, JSR 168 ( http://jcp.org/en/jsr/detail?id=168 ), establishes a standard API for creating portlets. It's designed to ensure interoperability between portlets and Java-based portal servers or other Web applications that imple

  • Particular user PO printing pop up

    Hi Experts, There are 5 users doing Purchase Order Entry into SAP Business One. Now user 3 wants that when he adds Purchase Order and automatic pop up should come asking wether to print the document or not. But this pop up is only required for user 3

  • ASO cube export  (Version 7 EAS)

    Hi Guys , I need to export the ASO cube in version 7 of EAS into flat file.please let me know the procedure . I need documentation if anyone can provide it. Regards Ram