What is the alternative to get callback for startUpdateFlowForResult in InAppUpdates instead of onActivityResult since it is deprecated?
- October 27, 2021
- 163 views
- 3 votes
- 3 Answers
-
What is the alternative to get callback for startUpdateFlowForResult in InAppUpdates instead of onActivityResult since it is deprecated?
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!