Android Open Source - AndroidFileExplorer Settings Activity






From Project

Back to project page AndroidFileExplorer.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project AndroidFileExplorer 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.example.androidfileexplorer;
//from   w ww . j  a  va  2 s .c o  m
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceFragment;

public class SettingsActivity extends Activity {
  public static final String PREF_UNKNOWN_MIME_TYPE_HANLDER = "pref_unknownMimeTypeHandler";
  public static final String PREF_DIR_COLOR = "pref_dirColor";
  public static final String PREF_FILE_COLOR = "pref_fileColor";

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getFragmentManager().beginTransaction()
        .replace(android.R.id.content, new SettingsFragment()).commit();
  }

  public static class SettingsFragment extends PreferenceFragment {
    @Override
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      addPreferencesFromResource(R.xml.preferences);
    }
  }
}




Java Source Code List

com.example.androidfileexplorer.DirListArrayAdapter.java
com.example.androidfileexplorer.FileMultiChoiceModeListener.java
com.example.androidfileexplorer.MainActivity.java
com.example.androidfileexplorer.RenameFileDialog.java
com.example.androidfileexplorer.SettingsActivity.java
com.example.androidfileexplorer.Util.java