公司最近来了一批四核的平板,刚开始以为是四核平板和二核平板的差异,导致systembar不能隐藏和正常显示。经过调查才发现,是android系统的版本问题。知道问题的所在,解决起来也就快了。
public void showSystembar(boolean makeVisible) {
checkInitialized();
try {
// get the existing environment
ArrayList<String> envlist = new ArrayList<String>();
Map<String, String> env = System.getenv();
for (String envName : env.keySet()) {
envlist.add(envName + "=" + env.get(envName));
}
String[] envp = (String[]) envlist.toArray(new String[0]);
// depending on makeVisible, show or hide the bar
if (makeVisible) {
Log.v(TAG, "showBar will show systembar");
// execute in correct environment
String command;