[Android] Add one interface to set whether to load external extensions.

For some usage scenarios, external extensions are not needed
because it has its own plugin or extension mechanism. Hence here a new
method is used to enable/disable the mechanism to load external extensions.

BUG=#948