copied from android.
Shared publiclyView activity