Android System WebView が ベータ配布 されているのだが

webクライントなコンポーネントが 5.0+ から独立するということのベータ版PlayStoreリリース. ということなのだが.

AndroidシステムのWebView_-_Google_Play_の_Android_アプリ 2

Beta Channel for the Android WebView | Android Developers Blog

コミュニティメンバーになればPlayStoreで見れるようになりインスール可能となります.

WebView Beta Channel - コミュニティ - Google+

WebView_Beta_Channel_-_コミュニティ_-_Google_

AndroidシステムのWebView_-_Google_Play_の_Android_アプリ

2つ仲良く並んでる状態となり,

20150214-191703

新しいほう.

20150214-191900

古いほう.

20150214-192009

まとめると,

新:
com.google.android.webview
バージョン40(1728298-arm)
56.07MB

旧:
com.android.webview
バージョン37(594484533a-arm)
1.66MB

インストール後 webview 経由でみてみる.

    ...
    WebView webView = (WebView) findViewById(R.id.web_view);
    WebSettings webSettings = webView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    webView.loadUrl("https://html5test.com/");
    ...

20150214-195013

フツーにアプリ内 webview は稼働しているのだが, 違いが見えないので反映されてるのか分かりにくいが, 「旧」が適用されている.

コミュニティのやりとりをみていると,

You can check the user agent - it should now mention version 40 rather than 37. Alternatively check the app version number under system settings > apps > Android System WebView

UAでみてみると,

Mozilla/5.0 (Linux; Android 5.0.2; Nexus 6 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36

おもいっきり 旧のまま.

旧を無効にして再度.

20150214-193302

Mozilla/5.0 (Linux; Android 5.0.2; Nexus 6 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36

変化なし...

どうやったら適用できるのかな?

ちなみに, ChromeBeta で HTML5 TEST を見てみると, 「新」は適用されている. これは, com.google.android.webview をインストールしてる, してないにかかわらず同じ.

20150214-195520

CMがダメなのかな.

なんでかな.


Android Studio 1.1 Beta で java.lang.NullPointerException

更新したら...

IDE_Fatal_Errors

null
java.lang.NullPointerException
  at com.android.sdklib.internal.avd.AvdManager.parseAvdInfo(AvdManager.java:1698)
  at com.android.sdklib.internal.avd.AvdManager.buildAvdList(AvdManager.java:1577)
  ...

We've just released Android Studio 1.1 Beta to the canary and dev channels.…

AVD周りで何かあるのかな.

以下でいける.

~ $ android list avd
...

The following Android Virtual Devices could not be loaded:
Name: n14
Path: /Users/evian/.android/avd/n14.avd
Error: Unknown target 'android-10' in /Users/evian/.android/avd/n14.ini

~ $ android delete avd -n n14
Deleting file /Users/evian/.android/avd/n14.ini
Deleting folder /Users/evian/.android/avd/n14.avd
AVD 'n14' deleted.

読み込めない avd を削除する.


コードを貼るだけ簡単で綺麗な「Share Button」

簡単で綺麗ですよ.

とりあえず貼っておけばいいですよね, こーゆーの.

Share_Button_-_give_your_website_more_social_traffic 2

Share_Button_-_give_your_website_more_social_traffic

スマホでもこんなかんじに表示されます.

20150118-141400

5行のコードを貼るだけです.

Share_Button_-_give_your_website_more_social_traffic 3

まずは貼って試してみよう!!

Share Button - give your website more social traffic


Factory Image を焼こうとして「archive does not contain boog.sig」といわれた場合

簡単にインストーラでできると思ったらうまくいかなかったよ.

Nexus6 にて 5.0.1 (LRX22C) が.

Android OS 4.4 (KRT16M) の Factory Images 公開されてる

Factory_Images_for_Nexus_Devices_-_Android_—_Google_Developers

Factory Images for Nexus Devices - Android — Google Developers

...
archive does not contain boog.sig
...

ダウンロードしたアーカイブの中身はこうなってるが.

shamu-lrx22c/
├── bootloader-shamu-moto-apq8084-71.05.img
├── flash-all.bat
├── flash-all.sh
├── flash-base.sh
├── image-shamu-lrx22c.zip
└── radio-shamu-d4.0-9625-02.55.04.img

image-shamu-lrx22c.zip をばらすと,

shamu-lrx22c/
├── android-info.txt
├── boot.img
├── bootloader-shamu-moto-apq8084-71.05.img
├── cache.img
├── flash-all.bat
├── flash-all.sh
├── flash-base.sh
├── image-shamu-lrx22c.zip
├── radio-shamu-d4.0-9625-02.55.04.img
├── recovery.img
├── system.img
└── userdata.img

それらを 個別に flash したらいける.

fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img

Flashing the factory image, "archive does not contain boot.sig", normal? : nexus4


java.lang.IllegalArgumentException: column '_id' does not exist contentProvider

CusorAdapter の projection には _id カラムをいれておけ.

...
static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] {
    Contacts._ID,   // 無駄に入れておく
    Contacts.DISPLAY_NAME,
    Contacts.CONTACT_STATUS,
    Contacts.CONTACT_PRESENCE,
    Contacts.PHOTO_ID,
    Contacts.LOOKUP_KEY,
};

public Loader<Cursor> onCreateLoader(int id, Bundle args) {
    // ...
    return new CursorLoader(getActivity(), baseUri,
            CONTACTS_SUMMARY_PROJECTION, select, null,
            Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC");
}
...

listview - Android column '_id' does not exist? - Stack Overflow