dariosalvi78 commented on issue #1202:
URL: 
https://github.com/apache/cordova-android/issues/1202#issuecomment-1819739263

   on Android 14 it seems that startActivityForResult has been abandoned and 
that we must use 
[registerForActivityResult](https://developer.android.com/training/basics/intents/result),
 but that function can only be called in the onCreate, I quote:
   
   > Note: You must call registerForActivityResult() before the fragment or 
activity is created, but you can't launch the ActivityResultLauncher until the 
fragment or activity's 
[Lifecycle](https://developer.android.com/reference/androidx/lifecycle/Lifecycle)
 has reached 
[CREATED](https://developer.android.com/reference/androidx/lifecycle/Lifecycle.State#CREATED).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to