AKTanara
AKTanara

Reputation: 250

ActivityResultLauncher GetContent() pass IP that I want the file to be uploaded to?

Using below: (Mentioned here):

ActivityResultLauncher<String> imageActivityResultLauncher = registerForActivityResult(
            new ActivityResultContracts.GetContent(),
            uri -> 
               //do something with uri (that needs an IPAddress specific for each request)
            });

and:

imageActivityResultLauncher.launch("image/*");

trying to select and upload a file. How can I pass the IP address that I want the file to be uploaded to and is specific for each request?

Thanks in advance...

Upvotes: 1

Views: 579

Answers (0)

Related Questions