adding AppService class so we can work with old and new Android versions with same class.