Android Open Source - DropboxText Settings Activity






From Project

Back to project page DropboxText.

License

The source code is released under:

MIT License

If you think the Android project DropboxText 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.dropBoxText.alexVasquez;
//w w w . j a  v a 2 s  . com
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.Menu;
import android.view.MenuItem;

public class SettingsActivity extends PreferenceActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.settings);
    }
    
    @Override
        public boolean onCreateOptionsMenu(Menu menu) {
            menu.add(Menu.NONE, 0, 0, "Show current settings");
            return super.onCreateOptionsMenu(menu);
        }
    
    @Override
        public boolean onOptionsItemSelected(MenuItem item) {
            switch (item.getItemId()) {
                case 0:
                  /*
                  SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
                    StringBuilder builder = new StringBuilder();
                    builder.append("\n" + sharedPrefs.getBoolean("perform_updates", false));
                    builder.append("\n" + sharedPrefs.getString("updates_interval", "-1"));
                    builder.append("\n" + sharedPrefs.getString("welcome_message", "NULL"));
                    */
                  return true;
            }
            return false;
        }

}




Java Source Code List

com.dropBoxText.alexVasquez.CrudTextFile.java
com.dropBoxText.alexVasquez.DropBox.java
com.dropBoxText.alexVasquez.DropboxTextActivity.java
com.dropBoxText.alexVasquez.NewTextFile.java
com.dropBoxText.alexVasquez.SettingsActivity.java