support ActionBar.
fix broken checking of package name.
fix crush bug.