I am trying to build an android app, exchanging data with a PHP server via JSON. Thus I need to learn working with GSON,
apache library module
Will my app work on older android devices (android 2.0.x - 4.4), if I'd follow the advice to use URLConnection ?
HttpURLConnection is not recommended prior to Android 2.2 due to bugs. Since few devices run such Android versions, this should not be a major impediment. Otherwise,
HttpURLConnection works fine, though its API leaves something to be desired. Personally, I recommend OkHttp3.