change registerAndroid function