Back to project page prim-ftpd.
The source code is released under:
Apache License
If you think the Android project prim-ftpd 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 org.primftpd; // w w w.j a va 2 s .com import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.MenuItem; public class FtpPrefsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // prefs fragment getFragmentManager().beginTransaction().replace( android.R.id.content, new FtpPrefsFragment() ).commit(); // allow to navigate back with action bar // DO NOT, force user to use HW back button getActionBar().setDisplayHomeAsUpEnabled(true); } @Override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); Intent intent = null; switch (item.getItemId()) { case android.R.id.home: intent = new Intent(this, PrimitiveFtpdActivity.class); startActivity(intent); break; } return true; } }