私はこれが古い投稿だと知っていますが、それは私を助け、私は貢献する必要がなくなりました。
Vigrondの答えはもう機能しなくなりましたが、これは私たちに何をすべきかの手がかりを与えることができます。
DroidGapがCordovaActivityクラスに行くとVigrondのスニペットを追加、だから、
/**
* This used to be the class that should be extended by application
* developers, but everything has been moved to CordovaActivity. So
* you should extend CordovaActivity instead of DroidGap. This class
* will be removed at a future time.
*
* @see CordovaActivity
* @deprecated
*/
が廃止されました:
WebSettings settings = appView.getSettings();
settings.setPluginState(PluginState.ON); // Turn Flash plugin on
そして、いくつかの輸入を追加する:
import android.webkit.WebSettings;
import android.webkit.WebSettings.PluginState;
これはトリックを行うことができます今のところ。
よろしくお願いします。