I have been using Android 4.2.2 and there are no such kind of options which different bloggers provided. So here I tried something new on my own and it really worked.
People who are looking for :
– How to enable/diable Media device (MTP) USB Mode on Android
– How to enable/disable Camera (PTP) USB Mode on Android
– How to enable/disable USB storage port
– How to set USB only for charging
can also refer this post.
Read also How to permanently disable VLC recent played list on dock /taskbar
Step 1: Connect your mobile device with your laptop through USB cable.
Step 2: Slide down. You will see this notification page. Click on it.
Step 3: Select the option according to your need. In my case I needed my USB cable to act like charger only so I selected 4th option.
Hope this might have worked for you. Read my another post on “USB Debugging” if you are not able to connect your mobile to your laptop or your laptop can’t search your mobile for data transfer. Please comment below your though.