Android examples for User Interface:ActionBar
set Default Icon for ActionBar
//package com.java2s; import android.app.ActionBar; public class Main { public static void setIconeDefault(ActionBar actionBar, int resId) { if (actionBar == null) { return; }//from ww w . j a va 2 s. c o m actionBar.setIcon(resId); actionBar.show(); } }