Android-FilePicker icon indicating copy to clipboard operation
Android-FilePicker copied to clipboard

startActivityForResult & onActivityResult Deprecated in Java

Open Morons opened this issue 4 years ago • 6 comments

startActivityForResult & onActivityResult Deprecated in Java will it be fixed/updated?

Morons avatar Jan 27 '21 13:01 Morons

I recognized this deprecation just now, is there any workaround for this?

shawn-gosam avatar Mar 11 '21 12:03 shawn-gosam

I can't say much, but to start I don't use this framework or plan to, I only want to share some interesting things. Google loves to break people's apps or frameworks ruthlessly. It's a company you can never fully trust. Look, I'm developer, the methods deprecated puts my apps and frameworks in jeopardize. They broke all my great efforts, replace those deprecated methods without alter bunch of things is impossible. It's very hard, it's anything but easy. The new APIs aren't intuitive, even if they appear to be.

Anyway, check this cool post and reflect well about Google 'behind curtains'. They seem cool outside for innocent users, but inside they aren't good guys like everyone think. It's only image...

And BTW get used, these things happens quite a lot. I don't know what happens in mind of those guys... Do they think everyone is rich?!

UltraBurstXD avatar Apr 10 '21 16:04 UltraBurstXD

I am following this issue and looking forward to seeing an update on this great library.

orwa-te avatar May 23 '21 10:05 orwa-te

It is actually Easiy fixed! Just research it from Getting a result from an activity Doing File access is actually pre-build in

Morons avatar May 23 '21 22:05 Morons

It is actually Easiy fixed! Just research it from Getting a result from an activity Doing File access is actually pre-build in

Thanks for your reply. It is really easy to convert the general code that uses startActivityForResult and onActivityResult to registerForActivityResult and then launch it. But FilePicker uses prebuilt code for this. I think you meant to download the open-source project of this Lib and change its code to match the new method instead of just adding the Lib as Gradle dependency line

orwa-te avatar May 24 '21 18:05 orwa-te

I am following this issue and looking forward to seeing an update on this great library.

@Morons How did you solved it, a sample code ?

BoumBam avatar May 31 '21 12:05 BoumBam