Hello. Is there any way to send data to previous a...
# android
v
Hello. Is there any way to send data to previous activity other than using startActivityForResult or storing it in preferences?
😶 3
n
new Results API
v
@Nikolay Puliaev Actually I can't add any other API to the project and I can't use StartActivityForResult to call another activity 😅. I am kinda restricted
a
It’s included in the current version of the Android SDK, you don’t have to add any other APIs/SDKs to your project
n
Really, I thought we need add activity and fragment dependencies to use it?
a
Well, sort of. You have to have the AndroidX Components included in your app.
But this is an official google lib. Doesn’t make a lot of sense to me that you are not allowed to use it in your app.
v
Guys I thought it's a 3rd party API. My bad.
a
👍 🙂
n
👍
Then you have to be able to achieve what you want with this one
v
I will try. thanks @Nikolay Puliaev @Artur Schwarz