[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
Merge pull request #949 from yongsheng/948

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