Modification of the assign method in AndroidGenerator