Back to project page intent_radio.
The source code is released under:
Copyright (c) 2014 Stephen Blott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
If you think the Android project intent_radio 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.smblott.intentradio; //from w w w . j av a 2 s. c o m import android.app.Activity; import android.content.Intent; import android.view.View; import android.view.Menu; import android.view.MenuItem; import android.view.MenuInflater; public abstract class PreferenceActivity extends Activity { @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.prefs, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { if ( item.getItemId() == R.id.prefs ) { startActivity(new Intent(this, Prefs.class)); return true; } return super.onOptionsItemSelected(item); } }