Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23369

Windows Phone : Ability to create file inside Device Documents,Downloads,Photos or Music folder .

    Details

    • Type: New Feature
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      O.S Windows 10
      Emulator WIndows Phone 8.1
      Titanium sdk 5.2.2
      Appcelerator 4.5.0

      Description

      The goal is to store a generic file in one of the accessible directories of the device (as Downloads).
      I tried to use follow code, but without results.

      var http = Ti.Network.createHTTPClient({
      	onload : function() {
      		var f = Ti.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, 'win.png');
      		f.write(this.responseData);
      ‚Äč
      	},
      	timeout : 3000
      });
      http.open('GET', 'http://');
      http.send(); 
      

      It seems that, using these API, i cannot store file in one of the directories visible by the device(Documents, Downloads, Photos, Music), and then make them available inside the device.

      Writing a file in the visible path inside the device such as Downloads, Documents,Photos, Music is required.

      It s already open a question in stack Overflow for the topic: https://stackoverflow.com/questions/37048820/titanium-windows-phone-how-can-i-save-a-file-in-visible-folders

      I tried to use another approach, by opening the file by means the Windows system API windows.system.launcher.launchuriasync mapped in Ti.Platform.openURL, and doesnt work.
      It's possible use a native windows function like windows.system.Launcher.LaunchFileAsync by building a custom module?
      This topic is already discussed in https://jira.appcelerator.org/browse/TIMOB-23319.

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steve90 stefano quadrini
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code