nickcapurso / MetroPlanner

App which tells you what trains to take and where to transfer to reach a desired destination.
1 stars 0 forks source link

Update JSONFetcher for API 23 #6

Open nickcapurso opened 9 years ago

nickcapurso commented 9 years ago

In API 23, functionality of Apache HTTP Components were brought into the Android APIs and deprecated the former. JSONFetcher still relies on the external API, so switching it over for API 23 will allow us to have a targetSdk level of 23.

cmlicata commented 9 years ago

We could also use OkHttp => an API that makes HTTP Request handling very easy.
Check it out here => https://github.com/square/okhttp OR We could also use Volley. Check it out here => https://github.com/mcxiaoke/android-volley

nickcapurso commented 9 years ago

Yeah, Volley is the one shown on the developer guides. Using the JsonObjectRequest format will probably be the best in terms of the least amount of new code needed.

Aside from that, we can also do it using the native methods. This would also not require significant code rewrite.

cmlicata commented 9 years ago

I agree, I am glad that we are on the same page.

On Oct 4, 2015, at 7:38 PM, NickCapurso notifications@github.com wrote:

Yeah, Volley is the one shown on the developer guides https://developer.android.com/training/volley/request.html. Using the JsonObjectRequest format will probably be the best in terms of the least amount of new code needed.

Aside from that, we can also do it using the native methods http://developer.android.com/reference/java/net/HttpURLConnection.html. This would also not require significant code rewrite.

— Reply to this email directly or view it on GitHub https://github.com/NickCapurso/MetroPlanner/issues/6#issuecomment-145402854.