Windows 8 phone receives files in Music or Documents folder

I want to get C # files downloaded from computer to default Document or Music folders on Windows 8 phone. How can I get them if possible?

+3


source to share


1 answer


These two folders are available to the developer as described in the answer for Windows Phone 8: Accessing Media Files

Songs and Photos

The api for songs and pictures seems to be MediaLibrary according to the Data for Windows Phone page on MSDN.

This allows you to add (SaveSong, SavePicture) and remove songs and pictures from the library.

To do this, you need to specify the ID_CAP_MEDIALIB_AUDIO and ID_CAP_MEDIALIB_PHOTO capabilities in your application manifest.

Documents (Windows RT only, not phone)



The documents folder can be accessed via the StorageFolder Api as described in File Access Example

StorageFolder storageFolder = KnownFolders.DocumentsLibrary; 

      

Uploading files

Downloading files from a computer is a completely different matter and requires additional information from you:

  • how do you want to upload files from your computer.
  • The computer has a file sharing server.
  • what protocol do you want to use
  • ...

If you are going to write a program for this computer to exchange files with your phone, then these Windows Phone 8 Networking Samples may provide some information on how to get sockets, nfc, bluetooth or http going to Windows Phone 8.

+2


source