Updated to target API 17; removed deprecated methods

Also switched the order of buttons in SelectDirectoryActivity depending
on API level