Java tutorial
//package com.java2s; //License from project: Apache License import android.app.ActionBar; import android.content.res.Resources; import android.graphics.drawable.Drawable; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class Main { public static void setBackIcon(ActionBar actionbar, Drawable backIcon) { try { Method method = Class.forName("android.app.ActionBar").getMethod("setBackButtonDrawable", new Class[] { Drawable.class }); try { method.invoke(actionbar, backIcon); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (Resources.NotFoundException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } } }