Copy Files (and use them) on Smartphone Emulator

It seems as though I can create a share on my dev machine and the Smartphone Emulator accepts them via File - Configure - General - Shared folder (although there's no way of telling). However, because the Smartphone emulator does not have a built-in File Manager there is no way to copy around the files on the device (emulator).

For example, say your Smartphone app relies on some .xml files for storing app-related information. I cannot figure out how to move those files into the app folder so my app can use them...or anywhere else on the device for that matter.

Are there any tools out there that I can deploy to the device (emulator), such as a File Manager/Explorer tool that I have on my SMT5600 This has got to be an issue for developers out there. Thanks for any information you can provide.

John W.



Answer this question

Copy Files (and use them) on Smartphone Emulator

  • Koray Bahar

    Thank you Mark. That works perfectly.
  • akabir

    You can add the files to your VS.NET project as a "Content" and then deploy with the project.  This will put the file in the deploy directory.  You can also move the file using the System.IO.File namespace. 

    Take a look at this link for a SmartPhone File Browser it may be of use in what you are trying to accomplish.  http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/SPFiles.asp

    ---
    Mark Arteaga
    .NET Compact Framework MVP
    http://www.neotericsdc.com | http://blog.markarteaga.com


  • Kiran Karnati

    Mark,

    I am just getting back to your suggestion now. How do I add a file, say a text or xml file as "Content" I know I can add it to a setup project that way, but what about if I am developing an application and need to debug and have certain files in-place I tried just dragging a text file into the Project, but it doesn't seem that it's deployed when I debug. Thanks for any assistance.

  • kingy0489

    Thanks Mark!
  • Jesse Beder

    IN the menu add Project - Add Existing Item and select the item to add.  When the item is added Right Click on the item in the "Solution Explorer" tab and click "Properties".  Make sure the "Build Action" is set to content.  When you debug the file should be deployed to the project deploy directory on the device.

    HTH

    ---
    Mark Arteaga
    .NET Compact Framework MVP
    http://www.neotericsdc.com | http://blog.markarteaga.com

  • Copy Files (and use them) on Smartphone Emulator