startActivityForResult is deprecated, meaning that it will no longer be supported going forward. That is why Android Studio is showing you the lines through the code. Instead, review this Stackoverflow post on alternative options: OnActivityResult method is deprecated, what is the alternative?
2
Answers
startActivityForResult
is deprecated, meaning that it will no longer be supported going forward. That is why Android Studio is showing you the lines through the code. Instead, review this Stackoverflow post on alternative options:OnActivityResult method is deprecated, what is the alternative?
startActivityForResult
is deprecated following is new the way. Here is a full source code exampleMainActivity
SampleActivity