Fix API usage for API level 10.