Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public void gotoOptions() { //In my main class Intent i = new Intent(this, Options.class); startSubActivity(i, ACTIVITY_OPTIONS); } /////////////// Now my options class: package com.android.project.wilfred; import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.RadioGroup; public class Options extends Activity implements RadioGroup.OnCheckedChangeListener { private String PREFS_NAME; private String PREFS_THEME; private String PREFS_PUBLICMAP; private final SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); private final SharedPreferences.Editor editor = settings.edit(); @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); PREFS_NAME = getString(R.string.p_name); PREFS_THEME = getString(R.string.p_theme); PREFS_PUBLICMAP = getString(R.string.p_public); loadPreferences(); } public void loadPreferences() { //TODO: Keep adding to this! final SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); if(settings.getBoolean(PREFS_THEME, false)) setTheme(android.R.style.Theme_Dark); else setTheme(android.R.style.Theme_White); //TODO: Change to custom colors eventually, for now just 2 themes (black-on-white, white-on-black) setOptions(); } public void setOptions() { setContentView(R.layout.options); RadioGroup o_radioGroupTheme = (RadioGroup) findViewById(R.id.o_radioGroupTheme); RadioGroup o_radioGroupMap = (RadioGroup) findViewById(R.id.o_radioGroupMap); o_radioGroupTheme.setOnCheckedChangeListener(this); o_radioGroupMap.setOnCheckedChangeListener(this); //This button handles submitting changed options TODO: disable it if no options to be changed Button b_save = (Button) findViewById(R.id.b_save); b_save.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { editor.commit(); setResult(RESULT_OK); finish(); } }); //This button cancels changes Button b_cancel = (Button) findViewById(R.id.b_cancel); b_cancel.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { setResult(RESULT_CANCELED); finish(); } }); } public void onCheckedChanged(RadioGroup group, int checkedId) { if(checkedId == R.id.r_changetheme_white) editor.putBoolean(PREFS_THEME, true); if(checkedId == R.id.r_changetheme_black) editor.putBoolean(PREFS_THEME, false); if(checkedId == R.id.r_publicmap_yes) editor.putBoolean(PREFS_PUBLICMAP, true); if(checkedId == R.id.r_publicmap_no) editor.putBoolean(PREFS_PUBLICMAP, false); } }