Android Open Source - generalsbuzz Settings Activity






From Project

Back to project page generalsbuzz.

License

The source code is released under:

MIT License

If you think the Android project generalsbuzz 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 me.kworden.wlcalendar2;
/*from   ww  w  . j ava2  s.  c  om*/
import me.kworden.wlcalendar2.fragment.SettingsFragment;
import me.kworden.wlcalendar2.util.APP;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.Menu;
import android.view.MenuItem;

public class SettingsActivity extends PreferenceActivity
{
  @Override
  protected void onCreate(Bundle p_bundle)
  {
    super.onCreate(p_bundle);
    APP.repull = true;
    getActionBar().setDisplayHomeAsUpEnabled(true);
    setContentView(R.layout.activity_settings);
    getFragmentManager().beginTransaction().replace(R.id.frag_settings_content, new SettingsFragment()).commit();
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu p_menu)
  {
    return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem p_item)
  {
    int t_id = p_item.getItemId();
    
    switch(t_id)
    {
      case android.R.id.home:
        this.finish();
        return true;
    }
    return super.onOptionsItemSelected(p_item);
  }
}




Java Source Code List

me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.MainActivity.java
me.kworden.wlcalendar2.SettingsActivity.java
me.kworden.wlcalendar2.adapter.EventAdapter.java
me.kworden.wlcalendar2.async.CheckLocalDataTask.java
me.kworden.wlcalendar2.async.ParseDataTask.java
me.kworden.wlcalendar2.async.ReadLocalDataTask.java
me.kworden.wlcalendar2.async.RequestRemoteDataTask.java
me.kworden.wlcalendar2.async.StoreDataTask.java
me.kworden.wlcalendar2.fragment.EventDisplayFragment.java
me.kworden.wlcalendar2.fragment.EventInfoFragment.java
me.kworden.wlcalendar2.fragment.SettingsFragment.java
me.kworden.wlcalendar2.receiver.CheckLocalDataReceiver.java
me.kworden.wlcalendar2.receiver.RequestRemoteDataReceiver.java
me.kworden.wlcalendar2.receiver.UpdateRowsReceiver.java
me.kworden.wlcalendar2.struct.MonthYearParcel.java
me.kworden.wlcalendar2.struct.WLEventClassifier.java
me.kworden.wlcalendar2.struct.WLEventLinebreak.java
me.kworden.wlcalendar2.struct.WLEvent.java
me.kworden.wlcalendar2.struct.WLHeader.java
me.kworden.wlcalendar2.util.APP.java
me.kworden.wlcalendar2.util.BROADCAST.java
me.kworden.wlcalendar2.util.MD5.java
me.kworden.wlcalendar2.util.PATTERNS.java
me.kworden.wlcalendar2.util.STATUS.java