コードを貼るだけ簡単で綺麗な「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