modified to use support lib to support api level 10