added compability with ahdroid 3.* 4.*