Why I get this error? Shouldn't android annotations take care of threading? Any help will be appreciated :). Thank you
@EActivity(R.layout.activity_main)
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
tradingHistory();
}
void myMethod() {
tradingHistory();
}
@Background
void tradingHistory (){
Helper helper = new Helper();
try {
helper.TradeHistory tradeHistory = helper.getTradeHistory();
System.out.println(tradeHistory.toString());
} catch (Helper.HelperException e) {
e.printStackTrace();
}
}
}