How do I get the Open Dialog on Android ICS 4.0?

Hi,
I am using Flash CS6, Android setup, 3.0 AS
I have a Galaxy Tab, ICS 4.0 for a device
I can read & write a text file perfectly fine on my PC.
But, when I upload to my Galaxy Tab 2 (7")....
1) I get a generic dialog that displays my path (/mnt/sdcard/) ... And it also displays "Audio, Image, Video" options. It says "Download" as a diaglog title.
I can save the file perfectly fine.
2) When I try to open, it only displays the "Audio, Image, Video" options BUT DOES NOT allow me to open the file I saved.
SO, HOW DO I GET A DIALOG THAT ALLOWS ME TO BROWSE TO THE FILE I SAVED??
Here is my code...
package com.adobe.examples
          import flash.display.Sprite;
          import flash.filesystem.*;
          import flash.events.*;
          import flash.system.Capabilities;
          import flash.text.TextFormat;
          import fl.controls.Button;
          import fl.controls.TextArea;
          //import flash.net.FileFilter;
          public class TextEditorFlash extends Sprite
                    //Fwhilton added
                    //var fileToOpen:File = new File();
                    //var txtFilter:FileFilter = new FileFilter("Text *.txt", "*.txt");
                    // The currentFile opened (and saved) by the application
                    private var currentFile:File;
                    // The FileStream object used for reading and writing the currentFile
                    private var stream:FileStream = new FileStream();
                     // The default directory
                    private var defaultDirectory:File;
                    // Whether the text data has changed (and should be saved)
                    public var dataChanged:Boolean = false;
                    public function TextEditorFlash()
                              trace("TextEditor()");
                              defaultDirectory = File.documentsDirectory;
                              //Fwhilton added
                              //defaultDirectory = File.documentsDirectory.resolvePath("testapps/");
                              newBtn.addEventListener(MouseEvent.CLICK,newFile);
                              openBtn.addEventListener(MouseEvent.CLICK,openFile);
                              saveBtn.addEventListener(MouseEvent.CLICK,saveFile);
                              saveAsBtn.addEventListener(MouseEvent.CLICK,saveAs);
                              var tf:TextFormat = new TextFormat();
                              tf.font = "Courier New";
                              tf.size = "16";
                              mainTextField.setStyle("textFormat",tf);
                    * Called when the user clicks the Open button. Opens a file chooser dialog box, in which the
                    * user selects a currentFile.
                    private function openFile(event:MouseEvent):void
                              var fileChooser:File;
                              if (currentFile)
                                        fileChooser = currentFile;
                              else
                                        fileChooser = defaultDirectory;
                              fileChooser.browseForOpen("Open");
                              fileChooser.addEventListener(Event.SELECT, fileOpenSelected);
                    * Called when the user selects the currentFile in the FileOpenPanel control. The method passes
                    * File object pointing to the selected currentFile, and opens a FileStream object in read mode (with a FileMode
                    * setting of READ), and modify's the title of the application window based on the filename.
                    private function fileOpenSelected(event:Event):void
                              currentFile = event.target as File;
                              stream = new FileStream();
                              stream.openAsync(currentFile, FileMode.READ);
                              stream.addEventListener(Event.COMPLETE, fileReadHandler);
                              stream.addEventListener(IOErrorEvent.IO_ERROR, readIOErrorHandler);
                              dataChanged = false;
                              currentFile.removeEventListener(Event.SELECT, fileOpenSelected);
                    * Called when the stream object has finished reading the data from the currentFile (in the openFile()
                    * method). This method reads the data as UTF data, converts the system-specific line ending characters
                    * in the data to the "\n" character, and displays the data in the mainTextField Text component.
                    private function fileReadHandler(event:Event):void
                              var str:String = stream.readUTFBytes(stream.bytesAvailable);
                              stream.close();
                              var lineEndPattern:RegExp = new RegExp(File.lineEnding, "g");
                              str = str.replace(lineEndPattern, "\n");
                              mainTextField.text = str;
                              stream.close();
                    * Called when the user clicks the "Save" button. The method sets up the stream object to point to
                    * the currentFile specified by the currentFile object, with save access. This method converts the "\r" and "\n" characters
                    * in the mainTextField.text data to the system-specific line ending character, and writes the data to the currentFile.
                    private function saveFile(event:MouseEvent = null):void
                              if (currentFile) {
                                        if (stream != null)
                                                  stream.close();
                                        stream = new FileStream();
                                        stream.openAsync(currentFile, FileMode.WRITE);
                                        stream.addEventListener(IOErrorEvent.IO_ERROR, writeIOErrorHandler);
                                        var str:String = mainTextField.text;
                                        str = str.replace(/\r/g, "\n");
                                        str = str.replace(/\n/g, File.lineEnding);
                                        stream.writeUTFBytes(str);
                                        stream.close();
                                        dataChanged = false;
                              else
                                        saveAs();
                    * Called when the user clicks the "Save As" button. Opens a Save As dialog box, in which the
                    * user selects a currentFile path. See the FileSavePanel.mxml currentFile.
                    private function saveAs(event:MouseEvent = null):void
                              var fileChooser:File;
                              if (currentFile)
                                        fileChooser = currentFile;
                              else
                                        fileChooser = defaultDirectory;
                              fileChooser.browseForSave("Save As");
                              fileChooser.addEventListener(Event.SELECT, saveAsFileSelected);
                    * Called when the user selects the file path in the Save As dialog box. The method passes the selected
                    * currentFile to the File object and calls the saveFile() method, which saves the currentFile.
                    private function saveAsFileSelected(event:Event):void
                              currentFile = event.target as File;
                              saveFile();
                              dataChanged = false;
                              currentFile.removeEventListener(Event.SELECT, saveAsFileSelected);
                    * Called when the user clicks the "New" button. Initializes the state, with an undefined File object and a
                    * blank text entry field.
                    private function newFile(event:MouseEvent):void
                              currentFile = undefined;
                              dataChanged = false;
                              mainTextField.text = "";
                    * Handles I/O errors that may come about when opening the currentFile.
                    private function readIOErrorHandler(event:Event):void
                              trace("The specified currentFile cannot be opened.");
                    * Handles I/O errors that may come about when writing the currentFile.
                    private function writeIOErrorHandler(event:Event):void
                              trace("The specified currentFile cannot be saved.");

It is impossible with just AIR. If you do not want to user native extensions you can easily implement a simple file browser with File class.
Try this: http://forums.adobe.com/message/4107990#4107990

Similar Messages

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How do i get the "open with" option back for pdfs after accidentally hitting the save option which now automatically saves any pdf?

    Normally when I click on a pdf I would get an option to "Open With" or Save. I usually just opened pdfs first. I accidentally clicked on the Save option in this dialog box and now when I click on any pdf it automatically asks me where I want to save it. I want to get the "open With" option back, because I don't necessarily want to save a copy of every pdf.

    Mountain Lion was released in 2012, so I suppose there might be advice in old threads or on the Apple forums if you don't get a response here right away.

  • How do I get the Speakable Dialog Bow to go away???

    Hello,
    I'm not certain what the feature is called Apple, as I must have hit a random set of keys on the key baord by mistake, but I am having a heck of a time trying to find out how to g close a speakable dialog box to close on my Mac. This is what it looks like - http://img689.imageshack.us/img689/5002/savedialogbox.png  It's the Black Box in the middle of the screen, with white lettering, and shows and speaks everything that I do.
    I've gone to the System Preferences and opened the "Speef" preference and it was "Off," so that can't be it, so any other ideas would be greatly appreciated.
    Thanks in advance,
    SH

    LOL... THANK YOU!!!!!  
    It's always frustarting to hit a set of commands and get a feature and then not know the sequence to turn it off.
    Thanks again... BIG sign going on over here.
    Best,
    SH

  • How can i get the open sale orders for given material no and plant

    Hi,
    I have to retrieve the open sale orders depending on the material number and plant.
    For only open sale orders at header level and item level.
    I want to use VBUK-GBSTK to find open sale order at header level and
                          VBUP-GBSTA at item level.
    Can any one suggest me the best logic as performance is concerned?           
    Thanks,
    Kumar.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I get the open counts on file type items?

    One of the managers' point of interesting on Portal usage is to know how frequently items are opened to view.
    I need to preapre a report to show managers which items (file type) are opened most frequently? and who opened the item most?
    How can I do it?
    Thanks,

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you saying that you bought a used or second hand Mac? In North America an open box Mac usually refers to a display model used in a store.
    There is mixed info on this issue. Some folks in the US have called Apple Care and requested that the iLife apps prebundled with this specific Mac be released from original owner's Apple ID so the new owner can Accept the apps into their Apple ID, with success. Folks in Europe report that when making the same request of Apple Care they are met with resistance and are unsuccessful.
    YMMV
    The sad thing is that if Apple Care will not release the apps, then the owner of a second hand Mac cannot even purchaase the apps on their Mac! To buy the apps with their own account, they would need to find an older Mac running at least OS X Snow Leopard 10.6.8 with a Mac App Store (MAS), that also has never had the MAS versions of the iLife apps installed on it.

  • When clicking on a pdf attachment in my email I would get a dialog box asking whether to save or open file. I inadvertantly clicked Save with the 'Always do this' option checked. How can I reverse this and get the option dialog box back. Win 7 Ultimate

    How do I get the dialog box back when clicking on a pdf attachment in my email. Made the mistake of clicking save while the check box was ticked.

    From Control Panel | Programs & Features: right-click on Windows Essentials 2012, then select Repair all Windows Essentials programs.

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How do I get the table of contents to toggle? I opened it while reading one book I had checked out from my library, but it is still open when I start another book. I am using Adobe 4 and Windows 8.1 on my PC.

    How do I get the table of contents to toggle? It has remained open since I opened it while reading two books ago. Thanks for the help.

    Thank you for your advice. I followed your directions, but came up with the same results. However, I did discover that whenever I open up the iPhoto Library that is already existing on my MacBook a certain set of pictures shows up. But then when I open up the iPhoto Library from the Hard drive another set of pictures shows up. BUT not ALL of my pictures are showing up on the iPhoto Library from the hard drive. At least the last two years of pictures are not showing up?! Actually, it appears that all the pictures are there from when I started using iPhoto about 5 years ago up until around the time that I got my iMac desktop computer and started using that (2 years ago). I have noticed that more recent videos I have made are showing up in a folder on the hard drive, but will not appear when I open up iMovie?! Any ideas on how to access my pictures from the last 2 years off of the hard drive???

  • I saved my "users" folder to an external HD. I did erase and install on my imac. Now how do i get the accounts to open up on the fresh installation?

    I saved my "users" folder to an external HD. I did erase and install on my imac. Now how do i get the accounts to open up on the fresh installation?

    To move a home folder, create a new home folder, copy the contents of the old home folder into the new home folder, and then delete the old home folder.  Take a look at this link, http://manuals.info.apple.com/en_US/UserMgmt_v10.6.pdf

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • How to get the Open qty. in JIT Schedule in VA33 txn.

    How to get the Open qty. in JIT Schedule in VA33 txn.
    The F1 Helps says Structure VBEPD field name is OLFMNG.

    any clues ??

  • I downloaded the new Pages and Numbers through my app store but when I open my old documents, it still tells me my 30 day trial is over. How do I get the computer to automatically recognize the new applications?

    More information: I have a 3 year old MacBook and had been using "Microsoft for Mac" until last week when I took my MacBook in for some upgrades- including the operating system Lion. I have been unable to use the Word, Excel, etc. programs because they are not supported on the new operating system... and I already used my 30 day trial of iWork when we first purchased the computer. I decided to buy Pages and Numbers through the App Store icon. When I open the Pages and Numbers under my Applications, I can get them to work. However, when I open old documents saved on my computer, they go into the 'old' iWork messages of that my trial has expired. How do I get the computer to automatically recognize that I've purchased Pages and Numbers?

    You need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user.
    Yvan Koenig has written an AppleScript that removes the files. You can find it on his box.com account in for_iWork'09 > other_iWork'09 items > uninstall iWork '09.zip.

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • When I open a new tab, how can I get the second tab to be me my home page also?

    I know how to right click and open a new tab when I am browsing but if I want to open just a blank new tab, how can I get the second tab to be my home page also?

    I know how to right click and open a new tab when I am browsing but if I want to open just a blank new tab, how can I get the second tab to be my home page also?

Maybe you are looking for