It seems like it's not properly supported as I need to implement JNI stuff when I try to implement IActivityResultCallback interface. Also ActivityResultContract is not a generic class so when I inherit it to create a custom contract it's not type-safe like in native Android. So it's not usable at all at the moment I guess?
Using Activity Result API in Xamarin.Android
525 Views Asked by solru At
1
There are 1 best solutions below
Related Questions in XAMARIN
- Xamarin Table View Crash
- How to read a characteristic (e.g. in WICED Smart example "speed_test")
- Using Azure MobileServices library with my own LAN WebApi
- Bundle Multiple Xamarin apps in one pkg installer
- Xamarin Google Cloud Messaging GcmClient.CheckDevice(this) causes runtime error
- UIAlertView popup won't let me swipe up Control Center
- How do I Insert a Previously Created SQLite Database into a Xamarin.Android App?
- Can custom text be added to a listview cell?
- How to run a ASP.net project to Xamarin Studio
- How can i do a fill animation in Xamarin.Forms
- How to change Display Alert default focus on a button?
- Mixing a CocosSharp game with UIViewControllers
- Building C# code in VSCode on Mac
- How to use research Kit framework in Xamarin
- Why is my app requesting permissions I didn't ask for?
Related Questions in XAMARIN.ANDROID
- How do I Insert a Previously Created SQLite Database into a Xamarin.Android App?
- ReplacementSpan in multiautocomplete textview overlap
- xamarin.forms.labs ImageButton issue
- InvalidCastException in release when casting TextFormatted to ISpannable or ISpanned
- Xamarin: How to print from Android device to dot matrix printer?
- How to hide out a layout in Xamarin.forms C#?
- Google Maps leaking JNI global reference
- Error after Enable Multi-Dex in Xamarin Android
- Show Dialog Fragment in Fragment
- Why is my DrawerLayout still open on activity resume, in spite of closing it?
- namespace prefix "myapp" is not defined in Xamarin While Building App?
- Exception when launching activity from PreferenceScreen
- How to set SQLite(SQLite.NET component) database Version in Xamarin Android
- Is iOS, Android binded libraries in Xamarin working in all devices(WinPhone, iOS, Android)?
- How to handle context menu in WebViewRenderer?
Related Questions in ONACTIVITYRESULT
- Start onActivityResult not being called from menu option
- android unable to resume activity on result using camera
- onActivityResult not being called when launching another app
- How to store string array (which is converted from array list <string> to string array) in shared preference.?
- Custom RecyclerAdapter and startActivityForResult
- OnSaveInstanceState/OnRestoreInstanceState with java collections
- onActivityResult is not called even though setResult is called
- List set in onActivityResult with data not sticking
- MediaStore.EXTRA_OUTPUT always contains null in Landscape mode
- Sum up value from OnActivityResult
- onActivityResult does not get the result
- Ucrop onActivityMethod not working
- How can I use createPendingResult inside fragment?
- Setting Dialog ImageView from Activity
- onActivityResult() not called
Related Questions in STARTACTIVITYFORRESULT
- MediaStore.EXTRA_OUTPUT always contains null in Landscape mode
- Share Intent destroys Activity
- StartActivityForResult is not returning data to parent activity
- Upload files from phone intent
- Error with ArrayList<cart> items.add(new_item);
- Android Custom Keyboard with SpeechRecognizer
- onActivityResult isn't being triggered
- Why startActivityForResult not returning any result from AlarmClock.ACTION_SET_ALARM intent?
- Cannot edit more than 1 list item in my To Do app
- Using startActivityForResult, how to get requestCode in child activity?
- Can't identify int in startActivityForResult?
- Waiting for the result returned by an activity inside the method that called startActivityForResult
- How to startActivityForResult on Android 11?
- startActivity and startSubActivity
- Inconsistent resultCode when copy to clipboard is pressed on a ShareIntent
Related Questions in ACTIVITY-RESULT-API
- Android Activity Result API with a ViewModel: how to reference ActivityResultRegistry
- How safe is registering contracts with ActivityResultRegistry after onResume in android?
- Why is data passed by onActivityResult(int, int, Bundle) not type-safe Or why does Activity Result API make calling activity for result type-safe?
- Default way to get request code in ActivityResultContract
- Activity result API's ActivityResultLauncher launch() method causes calling not only contract's createIntent() method but also parseResult()
- Adding Intent setAction to the new Activity Result API ActivityResultLauncher when selecting Image from Gallery
- Using Activity Result API in Xamarin.Android
- How to get requestCode from Activity Result API
- FirebaseUI needs pending intent
- Android SecurityException: Permission Deniel for CAMERA permission in the AndroidManifest file
- How To Send Intent Back using ActivityLauncher API?
- How to use ActivityResult API in fragment when Activity overrides `onActivityResult` method
- how to copy file and get Uri (with read permisssion) using android ResultLauncher in android 11
- Activity Result APIs (TakePicture() camera): Failure delivering result ResultInfo (App Crash)
- Does requiring an Play Services module in manifest.xml install for all apps or just the requestor
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can get around this issue by inheriting from
Java.Lang.Object. Something like this will probably work:IActivityResultCallback inherits from IJavaObject, which most, if not all Android interfaces do. This way Xamarin can interface between C# and Java. This is described pretty well here: https://learn.microsoft.com/en-us/xamarin/android/platform/java-integration/working-with-jni#implementing-interfaces