HttpEntity is deprecated on Android now, what's the alternative?
问题 With the release of Android 5.1, it looks like all the Apache http stuff has been deprecated. Looking at the documentation is useless; they all say This class was deprecated in API level 22. Please use openConnection() instead. Please visit this webpage for further details. Which is fine the first time you read it, but when EVERY class that was deprecated says that, it\'s not that helpful. Anyway, what are the alternatives for classes like HttpEntity , specifically StringEntity , and