Changed to deprecated method to support devices back to Gingerbread