added authorization, support android api 2.1 or higher