Powering an arduino and an android tablet

If you ran both thru diodes, the source with the higher voltage would reverse bias the lower voltage source's diode and keep that source turned off.