can now compile with android studio 0.3.0+. fix many crashes related to search.