back-ported to gingerbread (api-10)
the patch for dalvik, c++ doesnt allow convert int to enum