A Activity-Service-Thread Framework for android app