ResetAsync with waitForCompletion

Why is it when I run resetAsync().waitForCompletion() in a background thread it prevents the UI thread for displaying an alert message to the user to please wait. How do you get around this issue. If I just run the resetAsync() without the waitforcompletetion then the board is not ready for the user to run the next command.

What is the proper method for taring the sensor before you start the sensors?


  • I was able to find a solution to this issue by creating a AsyncTask class and using the onPreExecute to display the message and then putting the resetAsync in the doInBackgroud.

  • @awsllcjeff,
    Thank for the update. Our Android lead is currently unavailable so it's been hard to get Android answers.

Sign In or Register to comment.