How to start an activity and get the result #8465
Unanswered
ExtSolTech
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can start Activity for result in .Net Maui like that: Microsoft.Maui.ApplicationModel.Platform.CurrentActivity.StartActivityForResult(Intent, 1); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hy All,
I want to prompt the user to select one account and i will get the email address but i cant start an activity.
Here is some resources:
https://developers.google.com/android/reference/com/google/android/gms/common/AccountPicker
https://www.mongodb.com/developer/languages/kotlin/realm-startactivityforresult-registerforactivityresult-deprecated-android-kotlin/
https://docs.microsoft.com/en-us/dotnet/maui/fundamentals/app-lifecycle
so, i add an event handler to catch the OnActivityResult in static class MauiProgram:
and try to execute another activity in viewmodel on button click occurred:
but the
startActivityForResult
method is not exists, or i not found which namespace is contain.What is the equivalent
startActivityForResult
in MAUI?ty
Best regards,
ExtSol
Beta Was this translation helpful? Give feedback.
All reactions