Back to project page filemanager.
The source code is released under:
MIT License
If you think the Android project filemanager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.binkery.app.filemanager.fragments; // ww w . j av a 2 s. c om import java.io.File; import android.app.DialogFragment; import android.app.FragmentManager; import android.os.Bundle; public class BaseDialogFragment extends DialogFragment { private static final String TAG = BaseDialogFragment.class.getSimpleName(); private static final String KEY_PATH = "PATH"; protected String[] mPaths = null; protected File mFile = null; public static BaseDialogFragment show(Class<? extends BaseDialogFragment> clazz, String[] paths,FragmentManager fm) { BaseDialogFragment fragment = null; try { fragment = (BaseDialogFragment) clazz.newInstance();// new clazz(); Bundle b = new Bundle(); b.putStringArray("paths", paths); fragment.setArguments(b); } catch (Exception e) { e.printStackTrace(); } fragment.show(fm, "dialog"); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPaths = getArguments().getStringArray("paths"); } }