What is the alternative to get callback for startUpdateFlowForResult in InAppUpdates instead of onActivityResult since it is deprecated?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
3
Answers
You can use below code snippet alternative of onActivityResult()
First Activity
Step 1
Step 2
Step 3
In second class
We have to wait for Google Play team to migrate away from the deprecated APIs. You can follow this issue on Google’s Issue Tracker.
Create this result launcher
After that try to launch your intent like this
Give it a try!