From google i / o 2015, I found out that google play has a new dialog box where the user does not need to exit the current application to enable it. here is the image below that shows how it looks:

Now my question is: how can I implement this in my project? I searched, but could not find a valid answer, please help!
source share