Fixed NPE on SearchView for one activity. The same changes should work for the others.

I've fixed AllCohortsActivity.java. The same changes should work for AllMeasurementsActivity.java and AllActivitiesActivity.java.

Also added a .gitignore and removed the bin and gen dirs that shouldn't be in version control.