Open a PDF from an Air for Android app

Hi all,

I'm developing an AIR app for Android devices.

In the app, there is a button that should open a PDF with the default pdf reader (multitasking), but does not work!

I have an Android (2.2) emulator.

This is the code

protected function openClickHandler (): void
{
f.openWithDefaultApplication ();
}

f is a file object that points to the pdf format in the storage folder.

All suggest! Help!

Thank you.

F.

openWithDefaultApplication() is not currently supported by AIR Android. If you have a compelling use case involving this api, please send it to ideas.adobe.com

Tags: Adobe AIR

Similar Questions

  • Flash CS6 exports "Air for Android ' apps only with icons in small sizes: (36 x 36, 48 x 48, 72 x 72)... How to fix this?

    Hello

    I'm using Adobe Flash CS6 (15 AirSDK) for android applications. I have always noticed that the process of publication in flash is only 3 sizes of icons-app: 36 x 36, 48 x 48 and 72 x 72. In the descriptor xml that looks like this:

    <icon>
      <image36x36>assets/icon36.png</image36x36>
      <image48x48>assets/icon48.png</image48x48>
      <image72x72>assets/icon72.png</image72x72>
    </icon>

    In previous versions of AirSDK (3.4 and 3.5) this is less of a problem, since the app icons where at least somehow always put on the scale to fit the size of the icon of the application to the android device. With newer AirSDKs however they stay as they are, which is incredibly small on new devices and who looks just ridiculous! Since flash itself does not an option to add larger icons, I tried to write them in the descriptor myself, as:

    <icon>
      <image36x36>assets/icon36.png</image36x36>
      <image48x48>assets/icon48.png</image48x48>
      <image72x72>assets/icon72.png</image72x72>

      <image96x96>assets/icon96.png</image96x96>

      <image144x144>assets/icon144.png</image144x144>
    < / icon >

    But when I do that, flash that rewritten or, when I write of the descriptor protection, gives an error:

    "application descriptor file cannot be parsed.

    I need to get this fixed! :-S ...  I guess by either the reactivation of this scale-to-fit thingie in the SDK itself somehow (since it did and still does not work with for example AirSDK 3.4) or be able to add more icons. Is there someone who has to be treated, or knows how to get around this problem? Cause right now I'm stuck, since always, I compiled my AirForAndroidApps this way, and I need the latest version of the SDK to my milkmanANEs to work.

    Any help would be appreciated!

    Thanks in advance, ANB_Seth

    Very well. I found an answer:

    Yes, you can and must add these icons via the descriptor file, since the flash usually allow you to. But until you do that, go into the settings 'Air release' in flash. Here, right on page 1, there is the section "include files". Add your png icon there. Click OK and exit the settings. Now open the descriptor with a Publisher outside the Flash and write to the files I posted above. Close. Record. Do write protected. No go to flash and publish.

  • Air for Android App Playbook

    I tried to use the APK for BAR converter on the blackberry site.  I used an app, I've done in the Air Flash CS5.5 for Android.  When it has been sent for approval, I was sent that the app was rejected as she asked the user install Adobe Air.

    Now, I look and see that I need a Flash Builder project?  How can I use my CS5 flash project?  Command line tools keep telling me that I don't have an application descriptor file.  I have the MyName - app.xml and bar - descriptor.xml.

    Thank you.

    You must add all your assets to the .bar file explicitly. Using graph, on the first 'build air' tab on the bottom, there is the 'additional files' try add your Active Directory it.

  • Can't do StageVideo play in the AIR for Android

    I have no video, but audio only, to display when you include .mp4 encoded H.264 video in an AIR project Android test. LOOK for video performance iOS is ok with the same encoding settings.

    I know that there has been a lot of discussion about this in the past, but he has all the answers? Y at - there any formulation of video that will play by air for Android?

    I tested on a Samsung Galaxy 4 on Android 5.0.1.

    In the past, on older versions of Android, I had questionable but occasional reading video integrated in AIR for Android app, but when I run the app now the video repeatedly fails.

    It must be a problem of AIR because when I simply download the same video, that I built in my AIR on Galaxy 4 directly application it plays very well.

    My work for a client depends on, it works in Android. Any ideas?

    Before you begin, what AIR version do you use?  We've recently redesigned video on Android, and I want to make sure that you are up-to-date.  The latest version is AIR 22 (23 AIR will be released next month).

  • I can't open a pdf from last week. I have a Samsung s6 edge with t-mobile. I spent an hour and a half with t-mobile tech support and they told me to email you because they don't know what else to do. [Android]

    I can't open a pdf from last week. I have a Samsung s6 edge with t-mobile. I spent an hour and a half with t-mobile tech support and they told me to email you because they don't know what else to do.

    Hi Edwin,.

    May I know what is happening when you try to open a PDF file with Adobe Acrobat app on your device Galaxy.

    Try this:

    Go to settings > Applications > Adobe Acrobat

    Under the terms of the App Info, click on clear Cache

    Then try to open a PDF file

    Still, if this does not work

    Uninstall the application

    Then download and install directly from APK files.

    Adobe - Adobe Acrobat Reader DC Distribution

    I would like to know if it works for you.

    Thank you

    Abhishek

  • Air for Android: hardware accelerator

    Hi, I'm new to this forum and I hope that this is the right place where to put my question.

    I want to open a PDF document in my Air for Android application.

    I used StageWebView but I can't open my document because there is a problem with the accelerator.

    I use Air SDK 2.6.

    Can someone explain to me how I can activate hardware accelerator, or if there is another way to get what I need?

    The same code tested on IPad work perfectly.

    Thank you very much.

    Alberto

    Hello

    I guess you are on windows:

    Did you know that there is a bug open in Android Installer for Windows? See:

    http://StackOverflow.com/questions/4382178/Android-SDK-installation-doesn ' t-find-jdk

    (when you get popup/error with this message use 'Back' in the wizard, then simply 'Next' once again).

    Kind regards

    Peter

  • How can I get rid of him?  Have long subscription to Acrobat Pro DC, all of a sudden whenever I open a PDF from the Web, it opens in the player, which is useless; I don't want to learn a new system.  Previoius unilateral of the player installation, open a

    How can I get rid of him?  Have long subscription to Acrobat Pro DC, all of a sudden whenever I open a PDF from the Web, it opens in the player, which is useless; I don't want to learn a new system.  Previoius unilateral install drive, open a PDF file in Acrobat, and I treat here.  Thus, the reader is disturbing and needs to go. HOW?

    Here is a link that addresses disabling reader: display PDF in browser Adobe Acrobat DC, Acrobat Reader DC

    Let us know if it works for you.

    RonB

  • Partial Wakelock in Adobe Air for Android

    I develop Adobe Air (for Android) application that is designed to be constantly turned on. App has operations based event. However, when the phone goes to sleep mode app is able to perform only one or a few events in a second which is not good enough. AIR SystemIdleMode.KEEP_AWAKE - mode is not an alternative because it is too consuming battery.

    I am looking for a solution when the phone is allowed to enter the mode 'sleep' (screen is off), but still the CPU performance are not radically fallen. Not sure Android part wakelock-mode does the job and is available through DONKEY?

    What type of event you are missing to be able to manipulate during sleep? According to the documentation from Adobe AIR decreases the rate of 4 frames per second when it is moved to the background or becomes inactive. Im guessing that the screen, disabling account in this respect and that is probably a reason as to why you have found only a few events a second, but I can't say for sure without knowing what type of event you use. In regards Android PowerManager WAKE_LOCK function, Google documentation says that you should not use this API unless you absolutely, and if you have to use it, you use it and do with it as soon as possible as long as this hurts API independence (they have same "BOLD" the part about the battery life). What you try to do that requires that the app is always on? More details can help myself or others provide other options to accomplish what you are trying to do. If you must use the PowerManager, you should be able to create a DONKEY to turn on and off the WAKE_LOCK mode, but could only help the side Android/Java things and you might need to move your event handling during the side of things because Java application of AIR will be always abandoned at 4 frames per second when the screen turns off.

    Adobe AIR * Mobile application design considerations

    PowerManager | Android developers

  • Air for Android encoding SPARK instead of H264

    I don't have any flash application that simply video stream from a camera to a server. The stream must be encoded in H264 and when I publish a SWF file and use a webcam, I can see the connection to the server and see that it is H264 encoding.

    However, if I publish on a device using AIR for Android Android, when I publish to the server with camera phones, the stream is available in code in SPARK.

    Is there a reason for this? Is it not possible to encode H264 we AIR for Android? Or maybe I'm doing something wrong?

    Any help would be appreciated.

    After some searching on the forums I found the following answer: http://forums.adobe.com/message/4319145 H264 encoding is only supported on the desktop.

  • ListBox with air for Android

    I have to use the listbox control to air for android. But when I type in import fl.controls.List, I get the error: could not find definition fl.controls:List.

    even when I'm using fl.controls. * it gives the same error.

    I discovered that its becouse fl.controls.List is made for the following:

    Language version:ActionScript 3.0
    Product version:Flash CS3
    Versions of the Runtime:Flash Player 9.0.28.0, AIR 1.0

    (I got this from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/List.html)

    I use flash cs5.5 in air for android. does any1 know how I can use a listbox control to air for android?

    friend

    René

    Drag an instance of the listbox control to the library of components to the stage.  That he will place in your library.  Remove the instance you placed on the stage.

  • Problem with Air for android connect sqlite?

    I found use air sample connect sqlite from this website http://www.flashmove.com/forum/showthread.php?t=34778

    I copy this code into a new Air for Android models.

    then I tested in the office was ok. I do question, update, delete...

    but in the emulator Android was unable to connect to my sqlite file fail.it.

    the image below I check my data device that can not find sqlite file inside.but I do not know I pack file sqlite if the apk publication.

    a1.JPG

    can someone tell me how to connect sqlite correctly? Appeciately.

    First, never use the nativePath of File.applicationDirectory property (as in the example). It is not supported on Android. You get an empty string. While you might usually work around the writing restrictions on the application directory you using this technique on the desktop, it certainly does not work on Android. Always use URL rether than paths native to refer to the application files.

    What you need to do is to create the database in the applicationStorage directory. You can do it with SQL, or dealing in a file of database 'model' which you provided with the application of the book o the application storage directory application (using the URL not the native path, of course.)

  • When you try to open a PDF from Adobe, I get this message "to the 882 ordinal not found in SHELL32.dll dynamic link library.

    When you try to open a PDF from Adobe, I get this message "to the 882 ordinal not found in SHELL32.dll dynamic link library.  Any ideas on how to solve this problem.  Have Windows Vista.  Thank you.

    original title: problem opening Adobe pdf.

    Hi Gary,.

    Are you facing this issue only when you open pdf files?

    Method 1:

    You can try uninstalling and reinstalling Adobe software and check if it helps.

    Uninstall a program

    Method 2:

    You also try to run the system restore.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following links:

    System restore

    System Restore: frequently asked questions

    Hope this information is useful.

  • Impossible to compile Adobe AIR for Android TV

    Hello

    We try to compile the AIR with the flags are:

    < android >

    < manifestAdditions > <! [CDATA]

    < manifest android: installLocation = "auto" >

    ...

    < / manifesto >

    []] > < / manifestAdditions >

    < supportsAndroidTV > true < / supportsAndroidTV >

    < banner > "path of the image of the banner (320 x 180 px, .png file)" < / banner >

    < / android >

    and get:

    C:\MediaSignageDepot\Solution\5.0\Products\SignagePlayer\Android\SignagePlayerAn

    droidApp - app.xml (206): error 103: application.android.supportsAndroidTV is a UN

    element/attribute EXPECTED

    Anyone had success compile those flags with Adobe AIR for Android TV last?

    We're uisng the flag of swf-version 31 and namespace 20.0 to try to access this feature.

    We use the AIR 20

    Kind regards

    -Sean http://DigitalSignage.com

    ____________________________________________

    MediaSignage.com, digital signage FREE for everyone!

    5776-D Lindero Cyn Rd #182

    Westlake Village, CA 91362

    Phone: 1.877.DIG. SIGN (1-877-344-7446)

    Fax: 1.818.337.0442

    Live support: http://chat.digitalsignage.com

    I see that beta support has been added for Android TV in one of the beta versions of AIR 20. Read this discussion:

    AIR 20.0.0.230 iOS install questions and support Android TV has stopped working

    It seems that you would have used equip 185 and not the final version. Or you can try an AIR 21, or 22 AIR beta version.

  • How to open a PDF from another Web site?

    I'm trying to use Adobe to fill out a job application. They said that safari could not and I need to get the latest version that I did, but now when I go on the web site it just continues to show me this message. How to open a PDF from another site?

    Right-click on the link to the pdf file, save it on your computer, open it from the inside Reader using file > open.

  • Many problems with the runtime Adobe AIR for Android

    I created an application on Adobe AIR for Android platform, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of the Adobe Air runtime.

    For example, these users phones: LG LGE-P698, LG Pecan, HTC Wildfire. But judging by the fact that users have access to the installation of the Air, their phones are compatible with it.

    Tell me how to solve the problem?

    In addition, I have a few questions:

    1. Decides that the problem of demand for export with built-in AIR runtime?

    2. I have create my applications using ADT. In this case how do I seal AIR runtime?

    3. is it possible to invite the user to download and install older versions of AIR? Where can I find her?

    I hope I can help, because the problem is global.

    Hi Astraport,

    I think you should integrate the air in your application runtime,

    Some time ago I wrote a step by step guide, take a look at this post:

    http://forums.Adobe.com/message/3961579#3961579

    I hope it helps

Maybe you are looking for