An Activity-Service-Thread Framework for Android APP