Java Question How to use androidx.activity.result.ActivityResultRegistry in B4A

sareban

Member
Hi
I want to wrapp a library that needs ActivityResultRegistry in one of its methods
how can i get it in b4a?
 

DonManfred

Expert
Licensed User
Longtime User
What is ActivityResultRegistry?

what exactly are you trying to archieve? Most probably it is part of OnActivityResult?
 
Last edited:

sareban

Member
that is it

in android studio in AppCompatActivity i can get it with yshis method:
this.getActivityResultRegistry

And according to this article
added in androidx.activity:1.2

version of androidx.activity in my sdk is 1.1

so when i update androidx.appcompat and androidx.activity from sdk manager i can not run my project it has error before start activity

how can i fix it?
 

sareban

Member
that is it

in android studio in AppCompatActivity i can get it with yshis method:
this.getActivityResultRegistry

And according to this article
added in androidx.activity:1.2

version of androidx.activity in my sdk is 1.1

so when i update androidx.appcompat and androidx.activity from sdk manager i can not run my project it has error before start activity

how can i fix it?
or accord this if can i update appcompat of sdk to 1.3 or higher i can fix it

but when i update it i can not run my project

please help me
 
Top