Skip to content

criss721/Android-FileSelector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Android FileSelector

copy/paste this class in your project FileSelector.java

shot

How To Use :

new FileSelector(this, new String[]{FileSelector.XLS, FileSelector.XLSX}).selectFile(new FileSelector.OnSelectListener() {
      @Override
      public void onSelect(String path) {
        G.toast(path);
      }
    });

new FileSelector(this, new String[]{".jpg", ".jpeg"}).selectFile(new FileSelector.OnSelectListener() {
      @Override
      public void onSelect(String path) {
        G.toast(path);
      }
    });

findViewById(android.R.id.content).setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        new FileSelector(ActivitySplash.this, new String[]{FileSelector.PNG}).selectFile(new FileSelector.OnSelectListener() {
          @Override
          public void onSelect(String path) {
            G.toast(path);
          }
        });
      }
    });

About

Android File Selector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages