Android: programmatically check directory path for external or internal type
<p>I have String with directory path.<br>
I want programmatically check: the path is in interal or external device memory?</p>