Hello guys.
I am stuck on working with get and post methods with an URL. I have been programming this topic in processing.JAVA as follows:
import http.requests.*;
JSONObject json;
GetRequest leerTs = new GetRequest("https://blablabla.com/field/1.json?api_key=123456789&results"); //this URL is just an example
void setup()
{
//orientation(LANDSCAPE);//this is for android mode
size(displayWidth, displayHeight);
background(200,100,10);
}
void draw()
{
leerTs.send();
String answer = leerTs.getContent();
println(answer);
delay(2000);
}
I failed when trying it in android mode, I set android permissions like: internet, access_network_sketch and access_wifi_state, but it also fails. I wonder if there is a way of programing like this but in android mode.
Thanks in advance