通过反射调用StatusBarManager中的setStatusBarIconColor函数
public static void setStatusBarIconColor(Context context,int color)
{
try {
Object service = context.getSystemService(STATUSBAR);
if (service != null) {
Method expand = service.getClass().getMethod(SETSTATUSBARCOLOR,int.class);
expand.invoke(service,color);
}
} catch (Exception e) {
e.printStackTrace();
}
}