I can use AsnycTask get() method to wait for the background task to be completed, But how do I do it if I'm using CursorLoader and ContentProvider with LoaderManager Callback?
Is it also possible to prevent the UI thread from waiting for the data returned in the background thread?
You can easily pass your interface to get call back of Asynctask .This is right way to get solution of your problem