S
S
shahneff2019-11-29 18:12:32
Android
shahneff, 2019-11-29 18:12:32

How to work with EasyImage from fragment?

I'm building a mobile application in Kotlin for Android.
In order to take photos and get them as a file, I use the EasyImage library https://github.com/jkwiecien/EasyImage
Historically I use version 1.3.1, but a lot of errors got out when working with new versions of Android.
The author of the library rewrote everything in version 3.0.3, and now I can't figure out how to call the openCameraForImage() method from a class based on BaseFragment, which, in turn, is a descendant of the MvpAppCompatFragment class, which is a Fragment class.
This openCameraForImage() method wants an object of type android.app.Fragment as input, but my this does not suit it.
Please help me figure out what I'm doing wrong?
5de1354454ac9011498284.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndroidDev2015, 2019-11-29
@shachneff

You need to use the built-in androidX migration tool
https://developer.android.com/jetpack/androidx/migrate
Another way if the first one fails for some reason https://developer.android.com/studio/command-line/ ...
As a last resort, download the lib sources and manually change the dependencies to androidX
What to change https://developer.android.com/studio/command-line/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question