Air for Android - Receiving content from other apps

I would like to enable my app to receive text content from other apps. Everything is working except the invoke event is missing the shared text. Do I need to add some extra permissions to receive content from other apps or do I need to modify something else?
The XML code below is from the Android examples.
XML: Manifest:
<activity android:name=".ui.MyActivity" >
    <intent-filter>
        <action android:name="android.intent.action.SEND" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="text/plain" />
    </intent-filter>
</activity>
Air: Handling the invoke event:
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onAppInvoke);
function onAppInvoke(event:InvokeEvent):void {
info.text = event.arguments.toString()
info.text += event
I'm building my Android app with Adobe Air 3.6 and Flash CS 6.
Thanks.

I would like to enable my app to receive text content from other apps. Everything is working except the invoke event is missing the shared text. Do I need to add some extra permissions to receive content from other apps or do I need to modify something else?
The XML code below is from the Android examples.
XML: Manifest:
<activity android:name=".ui.MyActivity" >
    <intent-filter>
        <action android:name="android.intent.action.SEND" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="text/plain" />
    </intent-filter>
</activity>
Air: Handling the invoke event:
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onAppInvoke);
function onAppInvoke(event:InvokeEvent):void {
info.text = event.arguments.toString()
info.text += event
I'm building my Android app with Adobe Air 3.6 and Flash CS 6.
Thanks.

Similar Messages

  • Air for Android template missing from Flash CS5 Professional

    I am trying to get started with developing android apps in flash.  Most tutorials begin with my selecting the Air for Android template in Flash CS5 Pro.  This option is not available to me.  When I try to install the extension I get this: http://labs.adobe.com/technologies/flashpro_extensionforair/
    I am running the latest update for CS5.
    Any suggestions?
    Thanks!
    John

    Hey James,
    Thanks for the reply.  I clicked the updates button but all I can find is the trial version of CS5.5.  Is that correct?
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=flash&promoid=EBYEX
    Cheers,
    John

  • HT201272 did not receive content from in app purchase

    I have made a purchase within an app where I did not receive the purchased product. I have made a few other purchases in the same game and have always received my content immediately. How do I get a refund or redownload in app purchase?

    Even after disabling in app purchases (General > Restrictions) and setting the password requirement to 'immediately', I tried another in app purchase (for a smaller amount) and again it went straight through without asking for a password.

  • Portal Component receives GET from other app out of the Enterprise Portal?

    Hello.
    I want to design a portal component, to which i can send GET-Parameters via URL.
    The sending application runs out of the enterprise Portal and has a simple HTML-form (The portal component generates HTML and JAVA-Script for a Flex Application in the Enterprise Portal which should point to a specific document named in the params. The params will be written into the generated HTML document after calling).
    Is this possible without authetification and how would the URL looks like, which is used to call the enterprise portal?
    Pls help me.
    With best regards
    Edited by: Björn Karpenstein on Aug 15, 2008 11:02 AM
    Edited by: Björn Karpenstein on Aug 15, 2008 11:03 AM
    Edited by: Björn Karpenstein on Aug 15, 2008 11:05 AM

    Hi Björn,
    you can access request parameters with the following code in the standard methods of your Portal Component:
              // IPortalComponentRequest request;
              request.getServletRequest().getParameter("ParamName");
    The direct URL of your Portal Component without a specific iView is:
    http://
    If your component should be directly accessable without authentication you must add the following property in your portalapp.xml in the the component-profile section:
          <component-profile>
            <property name="AuthScheme" value="anonymous"></property>
          </component-profile>
    Best regards,
    Stefan Brauneis

  • Firefox for Android loads from start every time its switched back from other apps

    Hi
    I have figured this out that when I load Web pages and meanwhile I switch to other apps like Whatsapp, and then coming back to Firefox, Firefox loads again from the start instead of continuing from where I left.
    Even if the Web page is loaded fully and the loading process is completed and I switch to Whatsapp or any and then back to Firefox, Firefox again starts the process from beginning and loads the same page.
    This issue is not in chrome, as if Chrome is loading page and switch back and forth from other apps, chrome continues the process where I left and if the Web page is already loaded then Chrome doesn't start the process again and stays where it is.
    Please look into this, else you guys rock ;)

    Are you using the app switcher?
    Maybe this has something to do with how long the page is supposed to be cached... When I expand my tab list, I can see that some of the tabs are just where I left them and others have blanked out.
    Hopefully and Android guru can give you a better answer.

  • How to detect AIR for Android closing app event? AIR analog to Activity.onDestroy()

    How to detect AIR for Android closing app event (remove app from dock "Recent Apps")?
    In AndroidActivityWrapper.StateChangeCallback exist method onActivityStateChanged. But he have only DESTROYED state, which it seems received where app finish exiting. Activity.onDestroy() called if app start exiting.

    DPI aside, you can just set your resolution on the project to the target devices resolution to preview how it will look. While vectors will render much smoother on the device (higher DPI), it's a very easy way to target various resolutions for testing.
    If you have the full CC suite you might want to consider using Flash Builder 4.7 which has many different device presets and allows you to create your own presets to mimic tablets and phones. It really depends how complex your project is to move over to FB.

  • AIR for Android App - Video Issue

    Hi all,
    I've developed a Air for Android application targeted specifically for Samsung N 800.
    There is a section in the application that has a list of Thumbnails and the user can click on any thumbnail and Play appropriate video.
    When playing the video, there is a Close button and Next / Back buttons available on the screen to handle respective actions.
    The issue with the app is that, when the Video is playing, if I hit the Home button available on the Tablet, the app minimises. Now if I maximize the app from the System Tray or reopen the App from the Menu, the video continues to play, but this time the Video overlaps the Close and Next / Back, so the user is not able to close the video what so ever.
    The same issue occurs when I access any of the buttons available on the Tablets system bar on the bottom of the screen.
    Any help will be much appreciated

    I'm not sure if I completely understand you, but if I do, you want to check the Exif info to see how the image is oriented, then rotate it to show it how you want on the screen. Take a look at this post here: http://forums.adobe.com/thread/875157 it may help with doing what you need. It's a little tricky and works differently for iOS and Android, but not too hard to figure out. Also, in the future, you may have more luck getting some decent answers by posting in this forum: http://forums.adobe.com/community/air/development/mobile?view=discussions

  • Air for android in app purchases

    Has anyone played around with doing in app purchaces using AIR for android?  if so can you point me in the right direction for setting up something like this?
    Erik

    Hi Jonathan,
    Thanks for your response!
    jonbcampos wrote:
    1) BlackBerry has created a In-App Payment service. You can see more details at the following link. This is one such service to handle in app payments:
    http://devblog.blackberry.com/2011/01/blackberry-payment-service/
    Yes, but the subject of the post is "air for android". Can you use this blackberry service for android? Probably I am missing something.
    jonbcampos wrote:
    2) You can't take money without a few things, most of all a payment gateway. Payment gateway services can be expensive yet nowadays you can work with companies such as paypal and others to use their api to take payments. This is the service that you will have to call out to. Yes, you lose a little money in the transaction but this is the service that you will send payment information to and they are the gateway between you and the credit card companies. Once they have the money they turn around and pay you a percentage of the total sale. This percentage is determined in their fine print, so make sure you know how much each payment gateway is planning on taking from you.
    I know you need some kind of payment gateway. However, I guess the original thread author was requesting the Android Market in-app billing http://developer.android.com/guide/market/billing/index.html . They take 30% if I am not missinformed, but an advantage is that the customer already is registered with google market. Do you see other payment services as more interesting than the google market one when it comes to Android?
    N

  • Air for Android app just a black blank screen on emulator.

    Greetings,
    I'm starting android app development using air for android and I'm encountering the same problem as in this discussion, http://forums.adobe.com/message/4343423.
    Followed all the suggested solutions on the above link and nothing is working for me.
    Before I started air for android development, I upgraded my air sdk from 2.6 to 3.2, I overlayed the AIR 3.2 SDK in flash following the instructions on this link http://www.flashdeveloper.co/post/20583114199/air32-in-flash-cs-55.
    Published my first air for android test app (a simple test app to test swipe gestures) and installed the .apk on the emulator using the command line. When I launched the app on the emulator, it says Adobe AIR runtime is required so I installed the AIR runtime on the emulator using this tutorial http://renaun.com/blog/2010/12/finding-the-air-for-android-emulator-runtime/.
    When I thought everything will now work as expected then this problem came up. What do you think is the problem here?
    I'm using flash pro cs5.5 on windows 7 64-bit.
    Thanks in advance.
    Thanks,
    Randy

    Hi guys, any ideas?

  • 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!

  • AIR for Android: In-app Billing

    Hi!
    I would like use the new functionality in-app billing of Android. Because of that, I need use IPC method calls.
    Is possible use this communication technic since AIR for Android?
    Thanks

    Hi Pea!
    Yes, I tried with Elad's post, but it's very succinct to me.
    Finally, James Ward send me a draf about this hackin and I was able to generate a mixed apk. And I could generate the apk without problems.
    Now, I'm figthing with secure socket between android and flex.
    Thanks for your help.

  • Broadcast Receiver in Air for Android

    i cant able to launch my device after device boot up using broadcast receiver in air for android application. is there any solution for this by using native extension

    I am also looking for a solution for this.
    could u share a solution if you found anything so far.

  • I need help adding admob ads to air for android flash cs5.5 app

    I would like to know how can i add admob ads in adobe flash cs5.5 air for android app without buying any extentions please tell in detail because my scripting in as3 is VERY weak, so detailed answers would be lovely.

      flash-air-admob-ane-for-ios-and-android - Admob Ane,a adobe native extention(ANE) for actionscript developer to add go…
    you need upgrade to flash cc.

  • Using Google Play Developer License RSA code with Air for Android App?

    What is the procedure for using Google Play Developer's provided license code (Base64-encoded RSA public key to include in your binary) for an Air for Android app in Flash?
    I see the need to load a p12 file and have gone through the process of creating one for Air for iOS with OpenSSL but the Google provided key is in a different format. To start with it is delivered by copy/paste off a webpage.
    I am using Flash CS5.5. I could switch to CS6 if neccesary.
    Thanks

    Follow this link, see post number 12.
    http://forums.adobe.com/thread/1115438

  • AIR for Android app location

    I am developing an AIR for Android app. When the app is published, does anyone know where on the phone the app is stored? It would be on the internal memory as the app is never moved to the sd card.
    I need to know this as the app exports a pdf file. I am using File.applicationStorageDirectory so the pdf should save in the app directory but I cant find it.
    Would the app be stored in the same directory for iOS as well?
    Thanks
    UPDATE: 18/01/12
    I have found the app location and which can be accessed with a rooted phoned.
    I also have the pdf saving in the /Local Store/ directory of the app. However, is it possible to save the pdf in the sdcard directory? I have tried a relative path (../../../../../../sdcard) but that didnt work.

    Hi guys, any ideas?

Maybe you are looking for

  • Can't send email from my 4s

    Since my last update (4s) just a few weeks ago, i can no longer send emails from iCloud and aol account.  I received the following message: Cannot Send Mail, The user name or password for "SMTP: ****@[email protected]" is incorrect.  The same goes fo

  • Screen Sharing and Authentication

    During deployment, I used this command to bind my clients to the directory server: yes | dsconfigldap [-fvxsgemSN] -a myservername -n "myservername" -c $computerid -u diradmin -p mydiradminpass -l localadmin -q localadmin's pass after doing this, I c

  • Vista crashes when syncing photos to ipod

    I'm using Vista on an HP notebook. Syncing music is no problem, but when I atempt to Sync photos, Vista crashes while the photos are "optimizing", and the whole machine has to restart...I get a blue screen and then it restarts, after restart, I'm giv

  • How to move the Thumbnails & the photo caption to top in Galleria

    I am working on a click-able gallery using the coding found on jQuery Galleria 1.0b from http://galleria.aino.se/ Similar coding can be found on here; http://monc.se/kitchen/146/galleria-a-javascript-image-gallery#comments I would like to move the th

  • Sqlplus to connect to remote oracle database server

    Hi, I have oracle 10g database server on solaris 10 and I usually connect using my solaris account and run sqlplus on the server itself. this works ! I have downloaded and installed oracle instant client for solaris 64 and I can run sqlplus command b