android - Make a HTTP GET request in java? -
this question has reply here:
using java.net.urlconnection fire , handle http requests 9 answersanybody knows how create http request in java this?
create new class (for illustration latchsdk.java) extending latch.java. class should override http_get method own implementation perform http requests perform them in project.
public class latchsdk extends latch{ @override public jsonelement http_get(string url, map<string, string>headers) { //your implementation here } }
it can done httpurlconnection class. there plenty of examples online on how apply it.
java android
No comments:
Post a Comment