How to construct a default mtp device path for folder browse dialog? RRS feed

  • Question

  • I have a file browse dialog, which I use to select a path in an Android device. I need that path, because I copy a file from PC to that folder of the device. There is a special folder (which is create by my program on the device), which I would like to use as start of browsing.

    The browser gives the following return value for my path:


    I can get almost all parts of this path except ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}. I also tried to use the path without that GUID, but it didn't work, while it worked with it. Do you know how can I get this GUID?

    I looked into registry and I found this GUID (only one entry):
    which value is this:
    (CLSID subfolder contains more GUID, so I can't find, which is the correct one)

    Monday, November 19, 2012 2:47 PM


  • {20D04FE0-3AEA-1069-A2D8-08002B30309D} is for the My Computer delegate. It is a constant and needs to be part of the shell parsing path for MTP devices.



    • Edited by Lisa O - MSFT Monday, November 19, 2012 5:26 PM
    • Marked as answer by Doron Holan [MSFT] Monday, November 19, 2012 7:38 PM
    • Unmarked as answer by kadrian Tuesday, November 20, 2012 8:31 AM
    • Marked as answer by kadrian Tuesday, November 20, 2012 8:42 AM
    Monday, November 19, 2012 5:24 PM