Asyntask for two activities(inheritance)