Im trying to use async to make an api call, sometimes the request takes longer than 10 secs, is there a way to make the request wait for 30 secs
new Act().execute( val, val2, "" );
public class Act extends AsyncTask<String, String, String> {
protected String doInBackground( String... params ) {
return "";
}
@Override
protected void onPostExecute( String pResult ) {
}
}