In the application, the user has the ability to insert different url (video for example https://vimeo.com/185441790 ) with vimeo.
There was a need to parse using JSON, but from such a link, similar to the one above, https://vimeo.com/api/v2/video/183364240.json , so that you can get a thumbnail url from it.
With JSON familiar superficially, came across an interesting example c: www.androidhive.info . But here it seems to me a lot of superfluous, could you please orient me in the right direction (I work in the fragment).
- Do I need to create an additional class HttpHandler.java as shown in the example, or can I put everything in one?
- Since I don’t need to display this data anywhere, but just get a url, is it possible to shorten my query?
- In the example, there is a link from which all data is taken in principle, I have a vimeo.com resource, how to correctly specify it in the variable url, and if I have links from this resource will always be different, will it work correctly.
- Perhaps it would be better to create model objects and use Gson to parse my url?