问题
I am trying to call this dialog in my fragment, I visited some thread regarding this and I came to know about the overriding the OnAtach method but this method is deprecated and I can no longer use that method
@override
public void onAttach(Context context) {
super.onAttach(context);
context1=this.getActivity();
}
this is how I use to call the method but still, it is showing error red line in the builder method of the dialog this is thelibrary that I am using I asked them here but no answer yet
new FileChooserDialog.Builder(MainActivity.class)
.initialPath("/sdcard")
.mimeType("audio/*")
.tag("optional-identifier")
.goUpLabel("Back")
.show();
this is how i am calling
来源:https://stackoverflow.com/questions/45969328/how-to-use-the-filedialog-of-afollestad-material-dialogs