fix search on map
fix possible npe

possible npe at creating calendar
add API 10 compatibility for preferences