Back to project page bbstalker.
The source code is released under:
GNU General Public License
If you think the Android project bbstalker 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.raegdan.bbstalker; // w w w. j av a 2 s .c om import android.annotation.SuppressLint; import android.app.Activity; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.os.Build; import android.os.Bundle; public class ActivityEx extends Activity { @SuppressLint("InlinedApi") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Orientation fix for all activities together SharedPreferences sp = getSharedPreferences(getPackageName(), MODE_PRIVATE); if (sp.getBoolean("portrait_only", true)) { setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } //Apply theme if supported if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { setTheme(android.R.style.Theme_Holo_NoActionBar); } } }