Reputation: 411
I'm new to android.
I'm trying to select the file and read it in android java. To choose a file, I'm using https://android-arsenal.com/details/1/6982 file chooser library.
But it's showing that .with(this)
is deprecated. What I can replace it with to get rid of the warning?
Screenshot of warning: https://imghostr.com/xapXZzqE
Upvotes: 1
Views: 186
Reputation: 7479
Literally just scroll down that page a bit and take a look at this:
New calling chain
1.1.7+, new constructor ChooserDialog(context) can simplify the chain invoking, such as:
new ChooserDialog(this)
.withFilter(true, false)
.withStartFile(startingDir)
...
Upvotes: 3