Even if the class they reside in doesn’t implement it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. Nor can the containing class implement
AsyncTask.AsyncTaskis an abstract superclass, not an interface, so you extend it rather than implement it.But regardless, a method cannot extend a class or implement an interface. However, you might be able to use an anonymous class to provide an
AsyncTaskimplementation that just calls your method at the appropriate place.