android.permission.INTERNET
I'll use a HTTP library called Volley. and also RequestQueue.
The request is based on JsonObjectRequest and when it gets the response, it will invoke a method that will interpret the response JSON object.
After the response is fetched, readDirections method will find the duration and distance in the JSON object.
The response from the method will be sent as an array of two integers.
Next step will be to design the database and to add and search for entries in the database.
No comments:
Post a Comment