Reading files from phone memory

Hi All,
I am developing a Universal application using vs 2013 in windows phone 8.1. I am stuck in finding and reading file from phone memory.
I have used the Localfolder syntax
StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder;but it didn't worked. Its Showing the application data. But i want to read the file exixts in my phone memory.Then i have usedStorageFolder file = KnownFolders.DocumentsLibrary;but as i read from the forums its not suggested way to approach. Please suggest me the way to find the file from phone memory and to read it.Any help would be appreciatable!!

Hi sarika,
That is expected, see the documentation for more information:
App capability declarations at Documents section, you need declared at least a file type association.
Furthermore You can't use the Documents library in a Windows Phone Store app.
You can't publish a Windows Phone Store app that specifies the documentsLibrary capability to the Windows Phone Store. The Store blocks the publishing of the app.
Your app can't access the Documents library in the phone's internal storage. If another app creates a Documents folder on the optional SD card, however, your app can see that folder.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • (6230i) Unable to delete...file from phone memory

    Hello ...please help ...
    ...im having trouble deleting file from my phone memory (music file) that i downloaded from www.uaemobiles.com/wap/down.aspx?MN=3332383573&CD=​74752
    file is stil in my service inbox..
    please guide me ...i wanna get rid of that file..

    Check the 'More Like This' discussions on the right hand column.  I suspect you may find the answer there.
    Ciao.

  • New to J2ME, dont know how to read files on phone mem

    i check all the .io packages, still cant find any class that would help me to read files on phone memory.
    and i see that javax.microedition.media.Manager.createPlayer(String locator), require a string input argu. how can i make this string locator point to a media file on phone memory of TF-card.
    i heard Kjava has some packages from j2se, is there any class would help me? plz someone give me a link of Kjava reference, i cant find it anywhere, thx a lot!

    oh~~~no!
    i am afraid i cant enjoy myself with file conn.
    i tried several times, only to get a "Security Exception", and i contacted with moto dev center, they say that unless i have a cert, i cant use file conn API and many other APIs that is defined as restricted!!!
    and for the cert, if i have a biz relation with moto, they could give a "Develop Certification", or i must pay a third party to get a cert...
    what a world~~~~~~~~~~~is unfair!!!

  • Recovery of deleted data from Phone memory and Unlock Password Protected Data

    I have lost password of my blackberry (Curver 8520) protected data and by mistake I have also deleted some contacts, sms and memos from phone memory of blackberry set. Can any one help me to get recover my password and deleted data or is their any recovery tool which can be useful for it?

    Hi Kaushalbca
    Welcome to BlackBerry Support Community Forums
    By " BlackBerry Protected Data " do you mean BlackBerry ID password which we use for BlackBerry Protect ? If so , you can reset your password by following this KB Article : 
    KB26361  :How to change or reset a BlackBerry ID password.
    After reset , you can use BlackBerry protect to restore your deleted data ( If you have a backup of those deleted data ) , You can also restore your data if you ever did a backup using Desktop Software . To restore data refer to those KB Articles :
    KB25063  : How to use BlackBerry Protect to restore data to a BlackBerry smartphone
    KB10339 : How to use BlackBerry Desktop Software to restore data to a BlackBerry smartphone from a backup file
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Cannot send files from phone to Satellite L755-16z using BT

    Hi, experts :)
    I'm gonna get straight to the point !
    I've got a toshiba satallite L755-16z since a month or so (New, with windows 7 64-bit)
    and its is known that it has BT and I guess its 3.0
    So I tried to connect the bluetooth with my phone & it paired just fine !
    but when I try to send files from and to my phone, it says (connecting) but doesn't manage to send it in the end. furthermore, this problem isn't only with my phone as I've tried sending and recieving to & from another phone, but still same problem !
    HOWEVER, I tried to turn the BT adapter off (right click on bluetooth Icon in notification area then turn adapter off), then starting the (bluetooth monitor) application, and sending files & IT WORKS !!
    But this happens only for one time right after restarting bluetooth, so everytime I have to send files, I have to turn BT off then turn it on ?!!!
    This is kind of Unacceptable !
    I tried Toshiba Bluetooth Stack, and it had the same problem. Also, I didn't like the way it worked (style and everything) ... so I uninstalled it & returned to the original BT version in pc.
    I've searched for answers with no luck & now I'm desperate for the answer !
    Plz anyone who knows how to solve this issue, help me Plz ??!
    If my email is needed : [[email protected]]

    ok I tried to turn it off with fn + f8 ... wlan turns off with it too, that's natural, I know :)
    then I turned it on & I recieved a file from phone just fine ... that only worked ONE time !
    after that, sending/recieving files won't work ... on my phone it says ( cannot connect ) .... same thing when I restart bt monitor manually !!
    Also, I have tried going to ( C:\Program Files (x86)\TOSHIBA\Bluetooth Monitor ) folder
    there are other bt monitors like (btmon2) and (btmon64) but both of them are have same problem but has more time of activity !
    the problem itself isn't that its on or off ...
    it is on and it appears in the notification area ... but only works for only a short period of time ...
    or for (btmon2) I can say it works right after starting it ... then works for a while when its active (sending files or recieving files) ... but after a while with no activity (no sending/recieving) It Stops Working :(
    How can I fix the problem ???
    Mr. Tonny ? Anyone ??

  • How can I save adobe reader file from gmail into my adobe reader app?? i would like to open one file in place where I'm not able to access internet and for that reason i would like to save it. is that even possible?

    How can i save adobe reader file from my gmail into my adobe reader application. or is there any other way i can save it into my phone so I'm able to open in any situation not just from my gmail???

    Long hold on the document in mail and it should give you the open in... option, select adobe reader and the file is now saved locally for viewing even while offline.

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • Write / read files to RAM memory

    Dear all,
    I want to write a text file to RAM memory and after read it from RAM memory.
    Why? Because, I want to read my text files quickly, in short time.
    if I use default method for reading files it take long time for reading the file and for write the file.
    But, if I use write / read files to RAM memory, I can read my files quickly and read my files from RAM for processing and write my files to HDD.
    Can you help me?
    I searched on the Internet this problem and I did not find any one solution.
    From my searching on the Internet, I understand that Java can not do that.

    The problem with this program is that it load 1 minutes, but I want to load a second.
    Here is my java code:
    import java.io.*;
    public class File {
    public static void main(String[] args) {
    // Start to reading the file
          try{
        FileInputStream fstream1 = new FileInputStream("big.txt");
        DataInputStream in = new DataInputStream(fstream1);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String strLine;
        while ((strLine = br.readLine()) != null)   {
    // Start to replacing method
        String strreplace = "%";
        String result = strLine.replaceAll("a", strreplace);
    // End of replacing method
    // Start to writing to file
          try{
        FileWriter fstream2 = new FileWriter("out.txt", true);
            BufferedWriter out = new BufferedWriter(fstream2);
        out.write(result); // Write to file the result
        out.close();
        }catch (Exception e){
          System.err.println("Error: " + e.getMessage());
    // End of writing to file
        in.close();
        }catch (Exception e){
          System.err.println("Error: " + e.getMessage());
    // End of reading from file
    } // Here is the end...Please to do the following steps:
    1. Copy my code;
    2. Download text file from: [http://norvig.com/big.txt|http://norvig.com/big.txt]
    3. Open the text editor and select all text (Ctr+A) and dublicate the text 10 times for creating a big text file (30-40 MB);
    4. As a java developer, You know what to do next.
    I'm waiting your solution.
    Thanks in advance!

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • How do I move files from a memory card?

    I'm sure there's a simple answer...
    How do I move files from a memory card?
    There seems to be no option to 'cut' as you have on PC
    Thanks
    Omar

    That's working as intended. To delete it from the original location when done, press the Command key while dragging.
    (86103)

  • Copying Text Messages from Phone Memory

    I have managed to backup all my text messages from SIM Card to Computer, but I still have around 55 messages in my Phone (in Phone Memory), I need to backup them as well,
    Could anyone please tell me how can I copy text messages from Phone Memory to SIM?
    The reason I need to copy them onto SIM Card because the Original Phone can’t be connect to PC so I have to copy all Text Messages onto SIM and use another latest phone to connect to PC,
    thanks

    you will probably have to send them to another phone via forward of sms to email, or forward of sms to sms.

  • HOW TO DELETE ADOBE READER FILE FROM ADOBE READER

    HOW TO DELETE ADOBE READER FILE FROM ADOBE READER@ !@

    Your question make no sense. What exactly are you trying to do?

  • Reading Files from an FTP location based on Timestamp

    Hi,
    I have a requirement of reading files from an FTP location. The files should be read in the order they were saved in the folder. Can someone tell me how to solve this?
    Thanks,
    Ravi

    Hi Arik,
    Thanks for your reply. I tried doing what u said, but it isn't working. My requirement is to List the files in the folder using FTP adapter and get the file name with the least file stamp from the FTP adapter and pass the FileName dynamically to another FTP adapter which reads the file based on the FileName. When i tested after including the property (for listing the files) you mentioned, it is giving the following error (copied from flow trace):
    <messages>
    <input>
    <Invoke_getFileListFTP_FileListing_InputVariable>
    <part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/APP_SequentialFileTransfer/PRJ_SequentialFileTransfer/WS_GetFileList_FTP"/>
    </part>
    </Invoke_getFileListFTP_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured
    during invocation of JCA binding: "JCA Binding execute of
    Reference operation 'FileListing' failed due to: Exception
    occured when binding was invoked. Exception occured during
    invocation of JCA binding: "Could not instantiate
    InteractionSpec
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec due
    to: Cannot set JCA WSDL Property. Error while setting JCA
    WSDL Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property. ". The invoked JCA
    adapter raised a resource exception. Please examine the above
    error message carefully to determine a resolution. ". The
    invoked JCA adapter raised a resource exception. Please
    examine the above error message carefully to determine a
    resolution.</summary>
    </part>
    <part name="detail">
    <detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL
    Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property.</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks,
    Ravi
    Edited by: Ravi Santosh on Apr 24, 2012 11:02 PM

  • Reading file from an external folder.

    Iam tring to read an external file from the C:\ drive. Given below is the code.
    DATA LV_XLS(100) TYPE C.
    DATA LV_CONTENT TYPE XSTRING.
    LV_XLS = 'C:\XML\Report.xls'
    READ DATASET LV_XLS INTO LV_CONTENT.
    But when i execute iam getting an error - FILE NOT FOUND. How do i read file from an external folder. My requirement is to strictly read from an external folder. Please help.
    If this is not possible please advice as to how the file could be moved to the SAP root directory. Iam not able to locate the root.

    hi,
    This is the code to read a excel file from the local system.
    Read data set you are using in your code corresponds to files on application server thats the reason its throwing an error.
    * Parameter variable declaration for browsing the file location       *
    PARAMETERS:
      p_file TYPE ibipparms-path OBLIGATORY.
    data:
    it_text TYPE truxs_t_text_data .
    AT SELECTION-SCREEN  ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = syst-cprog
    *   DYNPRO_NUMBER       = SYST-DYNNR
         field_name          = ' '
       IMPORTING
         file_name           = p_file.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
          i_tab_raw_data             = it_text
          i_filename                 = p_file
        TABLES
          i_tab_converted_data       = t_cust
      EXCEPTIONS
        conversion_failed          = 1
        OTHERS                     = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    This is to read a text file from local system.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
        filename                      =  'D:\FILEINTERFACE\file.TXT'
    *    FILETYPE                      = 'ASC'
         has_field_separator           = 'X'
    *    HEADER_LENGTH                 = 0
    *    READ_BY_LINE                  = 'X'
    *    DAT_MODE                      = ' '
    *    CODEPAGE                      = ' '
    *    IGNORE_CERR                   = ABAP_TRUE
    *    REPLACEMENT                   = '#'
    *  IMPORTING
    *    FILELENGTH                    =
    *    HEADER                        =
        TABLES
          data_tab                      = t_kna1
    *  EXCEPTIONS
    *    FILE_OPEN_ERROR               = 1
    *    FILE_READ_ERROR               = 2
    *    NO_BATCH                      = 3
    *    GUI_REFUSE_FILETRANSFER       = 4
    *    INVALID_TYPE                  = 5
    *    NO_AUTHORITY                  = 6
    *    UNKNOWN_ERROR                 = 7
    *    BAD_DATA_FORMAT               = 8
    *    HEADER_NOT_ALLOWED            = 9
    *    SEPARATOR_NOT_ALLOWED         = 10
    *    HEADER_TOO_LONG               = 11
    *    UNKNOWN_DP_ERROR              = 12
    *    ACCESS_DENIED                 = 13
    *    DP_OUT_OF_MEMORY              = 14
    *    DISK_FULL                     = 15
    *    DP_TIMEOUT                    = 16
    *    OTHERS                        = 17
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    PS.  In both of the above mentioned function modules make sure that the file structure is similar to the internal tables used.
    Thanks
    Sharath

  • Reading file from a folder : File dir = new File(URL+aFile_to_add);

    Hi,
    Trying to read files from a dir on my site using a JSP and bean. I've tried nearly every option for the filepath I can think of and it doesn't seem to be finding the file...
    Here's the bit:
    String URL = "images\\wedding_photos\\";
    File dir = new File(URL+aFile_to_add);
    String[] files = dir.list();
    It's working locally, but I obviously had to change the path from c://... to the above.
    The full code is listed below in the addWedding Method
    The method removes the .jpg from the file name and then writes the new file name to a database
    Thanks for any insight.
    Regards
    Jim
    public String addWedding(String aFile_to_add)
    String feedback = "unset in scrubWedding";
    try
    String URL = "images\\wedding_photos\\";
    Class.forName("org.gjt.mm.mysql.Driver");
    java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:mysql://localhost/rhwedd2_shop?user=**********&password=*******");
    java.sql.Statement statement = connection.createStatement();
    File dir = new File(URL+aFile_to_add);
    String[] files = dir.list();
    if (files == null)
    feedback = "Sorry, couldn't find the file "+aFile_to_add+"...no files have been added.";
    else
    for (int i=0; i<files.length; i++)
    // Get filename of file or directory
    String filename = files;
    String no_extension;
    //convert string array element into a char array
    char [] charsfilename = filename.toCharArray();
    int newlength = charsfilename.length -4;
    no_extension = String.valueOf(charsfilename,0,newlength);
    filesAdded = filesAdded+", "+no_extension;
    // Show the new file names in stack trace without extension
    //System.out.println("String no_extension " + no_extension );
    statement.executeUpdate("INSERT INTO items VALUES ('"+no_extension+"',5,'"+aFile_to_add+"')");
    // write to table with item_id and weddingid
    feedback = "The following files have been added..."+filesAdded;
    if (statement != null )
    statement.close();
    if ( connection != null )
    connection.close();
    catch(Exception e)
    feedback = "Into the catch";
    e.printStackTrace(System.err) ;
    return feedback;
    }//end addWedding

    String URL = "images\\wedding_photos\\";
    File dir = new File(URL+aFile_to_add); ok, ok, I'll answer...
    1) What gives you the impression that the relative directory "images\\..." exists (or, in other words, what makes you think your current directory is the parent of "images"?

Maybe you are looking for

  • Firefox on my MacBook keeps crashing after about 1 minute use.

    For the last few weeks I have not been able to use Firefox. It keeps crashing about about 1 minute of use. It is not always on the same page that it crashes. I have tried reinstalling the program and that does not help at all. Can someone please help

  • Error in saving file. this is an usual error.

    "error in saving file. this is an unusual error. perhaps some computer maintenace is required" This notice keeps coming up whenever i try and save an audio file, which i have generated with "final vinyl". I have no idea what to do next. If anyone has

  • Re:Base UOM  & Sales UOM

    Hi guru's, My end user requirement is they require Base unit of measure in P.O. & sales unit of measure in Stock Transport Order can it be possible if yes please explain what can we do? thanks tuljasingh.

  • XSLT code giving emplty output

    Hi , i am a beginer in XSLT.  when i execute the code  i am getting emplty structure. Can anyone point out what is missing in my code, are the xpath expressions correct?? input Xml  will look as below <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_XS

  • Verizon Web Pages (unable to view)

    I can not view media or web pages related to ringtones/ringback tones...anyone else having this problem now?