カテゴリー
SugiBlog Webエンジニアのためのお役立ちTips

FLASHLIGHT

フラッシュライトを使うときのパーミッション

<uses-permission android:name="android.permission.FLASHLIGHT"/>
1,577 views

Softbank開発リファレンス

https://www.support.softbankmobile.co.jp/partner_st/home/index.cfm

1,872 views

aaptの使い方

$ <sdk>/platform-tools/aapt dump badging <path_to_exported_.apk>
2,906 views

役立つサイト

http://techbooster.jpn.org/

http://www.adakoda.com/android/

http://www.taosoftware.co.jp/android/android.html

1,518 views

文字入力ダイアログ

文字の入力欄をダイアログで表示します。

EditText editView = new EditText(this);

new AlertDialog.Builder(this)
    .setIcon(R.drawable.ic_dialog_info)
    .setTitle("ダイアログのタイトル")
    .setView(editView)
    .setPositiveButton("OK", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton) {
            // OKボタンの処理
        }
    })
    .setNegativeButton("キャンセル", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton) {
        }
    })
    .show();
4,710 views