Please don't force the application to use IPv4. We are deploying networks that have IPv6-only connectivity (with NAT64/DNS64) and IPv4-only applications will break on such networks. The world is running out of unused IPv4 addresses, and parts of the world (Asia, Europe, Middle East) are already out.
To solve this please look at RFC 6555: Happy Eyeballs. It describes an algorithm that will try IPv6 first but falls back to IPv4 so quickly that the user will hardly notice it (or usually won't notice it at all).
Unfortunately I don't know of a good Java implementation you could use on Android, but I hope others will be able to point you in the right direction. (or you can be the first to write an open source implementation and gain fortune and fame that way (well, fame at least ;))