this is not possible in api level 9. leads to null pointer because method was introduced in api level 10.