[Android] Initialize shared mode before setting preference

The initialization was done in the constructor of XWalkView
previously. However some preferences need to be set before
creation of any XWalkView instance.
Move the initialization out of XWalkView's constructor and
do initial for runtime before setting preferences.