Back to project page Ascent.
The source code is released under:
GNU General Public License
If you think the Android project Ascent 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 be.sourcery.ascent; //from w w w . ja v a2 s .c o m import android.annotation.TargetApi; import android.app.ActionBar; import android.app.Activity; import android.os.Build; public abstract class MyActivity extends Activity { @TargetApi(11) protected void setupActionBar() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); } } }