Android Open Source - filelistview Main Activity






From Project

Back to project page filelistview.

License

The source code is released under:

MIT License

If you think the Android project filelistview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.jcw.andriod.fileListView;
//  w  w w .j a  va 2s.c o  m
/*
 * Created by Jackson Woodruff on 18/07/2014 
 *
 * This is just a simple test case for the different
 * types of view
 */

import android.app.Activity;
import android.os.Bundle;
import android.util.*;
import android.os.*;
import android.widget.Toast;
import com.jcw.andriod.fileListView.dialogs.FileSelectDialog;

import java.io.*;
import java.util.*;

public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstance) {
        super.onCreate(savedInstance);
        setTheme(android.R.style.Theme_Holo_Light);
        File parentDir = Environment.getExternalStorageDirectory();
        Log.i("Files", Arrays.asList(FileUtils.listDirectories(parentDir)).toString());
        setContentView(new FileSaveView(getApplicationContext()));

    FileSelectDialog fileSelectDialog = new FileSelectDialog(getApplicationContext()) {
      @Override
      public void fileSelected(File selected) {
        Toast.makeText(getContext(), "You selected: " + selected.toString(), Toast.LENGTH_LONG).show();
      }
    };

    fileSelectDialog.setSearchEnabled(true);
    fileSelectDialog.show();
    }
}




Java Source Code List

com.jcw.andriod.fileListView.FileListAdapter.java
com.jcw.andriod.fileListView.FileListItemView.java
com.jcw.andriod.fileListView.FileListView.java
com.jcw.andriod.fileListView.FileOpenView.java
com.jcw.andriod.fileListView.FileSaveView.java
com.jcw.andriod.fileListView.FileUtils.java
com.jcw.andriod.fileListView.ListUtils.java
com.jcw.andriod.fileListView.MainActivity.java
com.jcw.andriod.fileListView.PictureGenerator.java
com.jcw.andriod.fileListView.dialogs.FileSelectDialog.java