Back to project page music-tag.
The source code is released under:
Apache License
If you think the Android project music-tag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package binauld.pierre.musictag.activities; /* w w w . jav a 2s. c om*/ import android.app.ActionBar; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.MenuItem; import binauld.pierre.musictag.fragments.SettingsFragment; /** * Activity for application settings */ public class SettingsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActionBar actionBar = getActionBar(); if(null != actionBar) { actionBar.setDisplayHomeAsUpEnabled(true); } // Display the fragment as the main content. getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); return true; default: return super.onOptionsItemSelected(item); } } }