how to use the filedialog of afollestad/material-dialogs

旧时模样 提交于 2019-12-12 04:35:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!