Someone asked help on our local forum about this and I thought it might also be of help here, so here goes my share.
If you are like me who wants to carry only a small cable for charging and data transfers, you'll find it hard to get your hands on a good micro USB charging/data cable. Buying micro USB charging/data cable for Samsung is tricky since the wiring can be different from the normal USB cable. There should be 5 pins on the micro end, but sometimes there are just 4. But Samsung cable uses only 4 pins that might have been rewired. I'm not sure whether only Samsung does this or the same can be said of the other brands. There are also micro USB cables being sold that does only charging and no data function, and vice versa.
I've grown tired of searching for a cheapo charging/data cable that doesn't deliver the function, so what I did was I bought micro USB to USB adapters instead and bought a normal female-to-male usb cable extender just in case the fragile cable wires get broken again they can be easily replaced. They get the job done. You can also use the other gender adapter and cable combo but using the same combo that I use enables you to charge and transfer data with just the adapter and without the cable in case the fragile cable gets damaged.
They charge the phone as fast as what the USB power brick provides and what the phone can accept at the same time.
This thread was opened with the intention to help others to easily find an almost guaranteed working data/charging cable combo because not everyone has access to a cheap branded cable. (And sometimes even a branded cable does not guarantee both functions). This is a quicker guaranteed solution for those buying micro USB cable that has no way to test the cable they are purchasing, mostly those buying online or those buying impulsively.
The logic behind the "almost guaranteed working data/charging cable combo" is that unlike micro USB cable, an extension cable guarantees that every pin has its own wire with no modifications, that's why it is called an extension cable. The micro USB adapter, guarantees the full conversion from micro USB to USB interface to have all pins connected properly, that's why it is called adapter/converter.
So, if you do not like the idea of the extended length that is protruding out of your micro USB slot, this thread is not for you and you are not obliged to use or try the setup in any way. The solution provided here is not perfect but a fully functional solution.
I hope this can help someone.