Create a FREArray inside a AsyncTask causes "FREWrongThreadException" exception in Android code. Do you know why?
Inside call() method
new AsyncTask<Void,Void,Void>()
{
@Override
protected Void doInBackground(Void... params) {
//anything
return null;
}
protected void onPostExecute(Void result) {
FREArray resultAIR = null;
try {
resultAIR = FREArray.newArray(1);
} catch (IllegalStateException e1) {
e1.printStackTrace();
} catch (FREASErrorException e1) {
e1.printStackTrace();
} catch (FREWrongThreadException e1) {
e1.printStackTrace();
}
//anything
}
}
thanks!