Added support for older versions of android.  Now compatible with >= API
8