I need to know how to halt code execution until my mobile service query finishes. I am getting a null pointer exception because the code is attempting to access the query data before the query finishes.
---Code---
mEmployeeTable.execute(new TableQueryCallback<Employee>() {
//get employees
...
});
//In this activity i attempt to use the info loaded from the query above
//however since the query has not completed i get null pointer exception
startActivity(intent);