Galaxy s4 charges but cannot be detected as usb device
In Settings or from the notification area, there should be a setting when connected via USB, is that set to "Charging Only"?  If so, set it to MTP/Mass Storage Mode instead.  I can't remember how Samsung words it.