Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to \"charging only\".
This is quite problematic because the USB port
This is a major problem for a layman to use. To access the files on your PC you need to follow the steps mentioned below:
Primarily this should solve the problem. But, if this DOES NOT solve the problem, then follow the following steps.
Now connect your device to your PC and you should be ready to go.
You have to follow these steps only once, however, you need to select the type of connection every time by swiping down on screen and selecting the option "MTP".
Hope this helps...!