I believe Google Play Services would provide the framework for this. It sounds like you'd be better off joining (see this link for instructions on how to join Android Central) and participating in our developer's sections for such questions (https://forums.androidcentral.com/android-developers/)