python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
which class I should use for Activity result callback array?
I am trying to use the new ActivityResultLauncher Intent for activity result, when I make the second parameter callback (ActivityResultCallback) Android Studio asks me which Class I want to import for...

stramin
Votes: 0
Answers: 1
How To Send Intent Back using ActivityLauncher API?
I've been using this method to try to send data between Activities, but Google don't show you how to send the data back from the other Activity. So I started looking for other methods that might work,...

Skello
Votes: 0
Answers: 1
How long can I use the URI from ActivityResultContracts.GetContent() for?
Basically, I'm trying to let users choose pictures from their phone's image gallery to use as background images in my app.
Here is my code:
private val pickImages = registerForActivityResult(Activity...
Lifes
Votes: 0
Answers: 1
How to limit ActivityResultContract.GetContent to media (image or video)
Is there a way to make ActivityResultContract.GetContent filter only media files?
private val selectMediaResultLauncher = registerForActivityResult(ActivityResultContracts.GetContent()) { uri: Uri...

Udi Oshi
Votes: 0
Answers: 1

