More or less this is the best way. Moreover, I always pass Activity to
constructor of View Models as you really need it in many many
situations, for example, to start another activity.
> --
> You received this message because you are subscribed to the Google Groups
> "AndroidBinding" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
androidbindin...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>