Added support for devices from api level 8.
Merged with api level 7 branch.