Upon the successful connection of your Android phone to a computer, you have the option of configuring the USB connection. A menu appears, either automatically or when you choose the USB notification. If not, you can manually configure the USB connection by following these steps:
Open the Settings app.
Choose Storage.
Touch the Action Overflow icon and choose the USB Computer Connection command.
Choose either Media Device (MTP) or Camera (PTP).
Select Media Device (MTP) if it’s not already selected.
MTP stands for Media Transfer Protocol. When that setting is chosen, the computer believes the phone to be a portable media player, which it is, kinda. This option is the most common option.
PTP stands for Picture Transfer Protocol. In this setting, the computer is misled into thinking that the phone is a digital camera. Select this option only when the MTP option fails to make the connection.
If you can’t get the USB connection to work, check to see whether the phone features a proprietary synchronization program, such as Samsung’s Kies utility.
No matter which USB connection option you’ve chosen, the phone’s battery charges whenever it’s connected to a computer’s USB port — as long as the computer is turned on, of course.