こうやって設定しないと上手く動かんよ。
web1 = (WebView)findViewById(R.id.home_web1);
web1.setWebViewClient(new WebViewClient());
web1.setWebChromeClient(new WebChromeClient());
WebSettings setting = web1.getSettings();
setting.setJavaScriptEnabled(true);
setting.setGeolocationEnabled(true);
setting.setJavaScriptCanOpenWindowsAutomatically(true);
setting.setLoadsImagesAutomatically(true);
setting.setPluginsEnabled(true);
setting.setLightTouchEnabled(true);
setting.setSupportZoom(true);
setting.setDatabaseEnabled(true);
setting.setDatabasePath("/data/data/" + getPackageName() + "/database");
setting.setDomStorageEnabled(true);
setting.setAppCacheMaxSize(1024 * 1024 * 8);
setting.setAppCachePath("/data/data/" + getPackageName() + "/cache");
setting.setAppCacheEnabled(true);
setting.setAllowFileAccess(true);
setting.setCacheMode(WebSettings.LOAD_NORMAL);
========
public class WebViewChromeClient extends WebChromeClient{
/**
* HTML5用DBの容量
*/
@Override
public void onExceededDatabaseQuota(String url, String databaseIdentifier,
long currentQuota, long estimatedSize, long totalUsedQuota,
QuotaUpdater quotaUpdater) {
quotaUpdater.updateQuota(5 * 1024 * 1024);
}
}
たまにはマジメに。
Amazon banner
2011年2月28日月曜日
Kabuto Metalについて
/ ̄ ̄ ̄\
/ ─ ─ \
/ (●) (●) \
| u (__人__) |
\ ` ⌒´ ノ⌒⌒ヾ フキ
/ ` ー─γ )) フキ
/´ ̄ヾ ヽ ((
ァ、ヽ`ン ) ヽ
-'´ (
いやー、色々書きたいんですけどもね。
中々めんどくさ…時間が無くて…。
頑張って書きます。
次はIron Maidenだお。
2011年2月23日水曜日
2/22 Bring me the Horizon setlist メモ
順番違うかもしれないけど
It Never Ends
Diamonds Aren't Forever
Alligator Blood
Fuck
The Sadness Will Never End
Football Season is Over
Crucify Me
Blessed With A Curse
Anthem
Encore:
Suicide Season
Chelsea Smile
俺メモ
It Never Ends
Diamonds Aren't Forever
Alligator Blood
Fuck
The Sadness Will Never End
Football Season is Over
Crucify Me
Blessed With A Curse
Anthem
Encore:
Suicide Season
Chelsea Smile
俺メモ
登録:
投稿 (Atom)