update mainActivity in android wrapper