My application is getting stuck while performing database operation after googling for solutions it was suggested that I use AsyncTask so that main thread doesn\'t get block
No, you can't extend a class from multiple classes as it violates the property of java because java doesn't support multiple inheritence so for your case you have to create a new class which will extend ASyncTask and override the abstract methods to perform all the database related operations. Thank you