2013ソスN11ソスソス30ソスソス

[Android] IntentServiceソスソスソスpソスソスソスソスソスソスServiceソスソスBroadcastReceiverソスフ抵ソスソスノ擾ソスソスソス

IntentServiceソスニゑソスソスソスソスヨ暦ソスソスネクソスソスソスXソスソスソスソスソスソスワゑソスソスB
ソスoソスbソスNソスOソスソスソスEソスソスソスhソスナ難ソスソスしソストゑソスソスソスト、ソスソスソスソスソスソスソスIソスソスソスソスソスソス迴滂ソスソスノ終ソスソスソスソスソストゑソスソスソスソスService(ソスニゑソスソスソスソスFソスソス)ソスナゑソスソスB
BroadcastReceiverソス_ソス@ソスナ趣ソスソスヤのゑソスソスソスソス髀茨ソスソスソスソスソスsソスソスソスソスソスソスソスニゑソスソスノ使ソスソスソスニ便暦ソスソスナゑソスソスヒ。

ソスソスソスソスヘ難ソスソスソスソスBroadcastReceiverソスソスソス轤オソスソスソストばゑソスネゑソスソスソスソスソスソスソスソスソスソスソスソス゚、ソスネ会ソスソスフようソスソスIntentServiceソスソスソスソスソスソスソストみまゑソスソスソスソスB
public class HogeReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// ... ソスネゑソス轤ゥソスフ擾ソスソスソス

context.startService(new Intent(context, FugaService.class));
}

public static class FugaService extends IntentService {
public FugaService() {
super("FugaService");
}

@Override
protected void onHandleIntent(Intent intent) {
// ... ソスoソスbソスNソスOソスソスソスEソスソスソスhソスナ行ソスソスソスソスソスソスソスソスソスソス
}
}
}


AndroidManifest.xmlソスヘゑソスソスソスネ奇ソスソスソスソスB
<receiver android:name=".HogeReceiver" />
<service android:name=".HogeReceiver$FugaService" />


ソスソスソスソスソスナゑソスBroadcastReceiverソスソスServiceソスソス2ソスツゑソス1ソスツな奇ソスソスソスソスネので、ソスソスソスソスネ奇ソスソスソスソスナ擾ソスソスソスソスソスソスソスソスソスソスツなゑソスソス閧ェソスかソスソスソスト良ゑソスソスソスソスネ、ソスニ思ソスソスソスソスソスソスソスソスB
IntentServiceソスフクソスソスソスXソスソスソスOソスソスソスノゑソスソストゑソスソスヌゑソスソスソスソスソスソスソスソスソスネゑソスソスB
BroadcastReceiverソスソスソスノ非同奇ソスソスソスソスソスソスソスソスソスソスソスソスソスホゑソスソスソスネ擾ソスソスソスソスソスソスソスソスネゑソスソスト済むのでゑソスソスソスソスヌね。

posted by t2low at 21:00| Android

2013ソスN11ソスソス29ソスソス

[Android] android.intent.action.PACKAGE_ソス`

BroadcastReceiverソスナ趣ソスMソスナゑソスソスソスuPACKAGE_ソス`ソスvソスフアソスNソスVソスソスソスソスソスノつゑソスソスト抵ソスソスラてみまゑソスソスソスソスB
ソスソスソスソスソスネゑソスソスソスソスフは以会ソスソスソスIntentFilterソスソスン定しソスソスBroadcastReceiverソスナ趣ソスMソスソスソスソスActionソスソスソスソスソスOソスノ表ソスソスソスソスソスソスニゑソスソスソスソスソスソスフ。
Androidソスフソソス[ソスXソスソスヌゑソスナ詳細に抵ソスソスラゑソスソスけソスナなゑソスソスAソスソスソスソスソスソスmソスFソスソスソスソスソスソスソスソスソスナゑソスソスB

<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_CHANGED" />
<action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
<action android:name="android.intent.action.PACKAGE_FIRST_LAUNCH" />
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<action android:name="android.intent.action.PACKAGE_INSTALL" />
<action android:name="android.intent.action.PACKAGE_NEEDS_VERIFICATION" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_RESTARTED" />
<action android:name="android.intent.action.PACKAGE_VERIFIED" />

<data android:scheme="package" />
</intent-filter>


ソスmソスFソスソスソスソスソス[ソスソスソスヘ以会ソスソスソス3ソスツ。ソスソスソスハ難ソスソスソスAndroidソスフバソス[ソスWソスソスソスソスソスナゑソスソスB
ソスEHTC Desire (2.3.3)
ソスEHTC Evo 3D (4.0.3)
ソスEHTC J One (4.2.2)

ソスネ会ソスソスソスソスuソスソスソスソスvソスニゑソスソスフ趣ソスソスノ趣ソスMソスソスソスソスソスuBroadcastソスvソスナゑソスソスB

--------------------------------
ソスソスソスCソスソスソスXソスgソス[ソスソス
android.intent.action.PACKAGE_ADDED

ソスソスソスAソスbソスvソスfソス[ソスg
android.intent.action.PACKAGE_REMOVED
android.intent.action.PACKAGE_ADDED
android.intent.action.PACKAGE_REPLACED

ソスソスソスAソスソスソスCソスソスソスXソスgソス[ソスソス
android.intent.action.PACKAGE_REMOVED
android.intent.action.PACKAGE_FULLY_REMOVED (4.0ソスネ降ソスフゑソス)

ソスソスソスソスソスソスソスソス~
android.intent.action.PACKAGE_RESTARTED

ソスソスソスfソス[ソス^ソス除
android.intent.action.PACKAGE_RESTARTED
android.intent.action.PACKAGE_DATA_CLEARED

ソスソスソスソスソスソスソスソス/ソスLソスソスソスソス (4.0ソスネ降ソスフゑソス)
android.intent.action.PACKAGE_CHANGED (4.0ソスネ降ソスフゑソス)

ソスソスSDソスJソス[ソスhソスヨ移難ソス/ソスgソスム端ソスソスソスヨ移難ソス
(ソスネゑソス)
--------------------------------

ソスAソスbソスvソスfソス[ソスgソスソスADDEDソスソスREMOVEDソスソスソスソスMソスソスソスソスフゑソスソス゚ゑソスヌゑソスソスソスソスソスソスナゑソスソスヒ。
ソスCソスソスソスXソスgソス[ソスソス/ソスAソスbソスvソスfソス[ソスg/ソスAソスソスソスCソスソスソスXソスgソス[ソスソスソスナ会ソスソス轤ゥソスフ擾ソスソスソスソスソスソスsソスソスソスソスソスソスソス鼾ソスAソスPソスソスソスソスADDEDソスソスREMOVEDソスソスソスノ擾ソスソスソスソスソスソスsソスソスソストゑソスソスワゑソスソスニ、ソスAソスbソスvソスfソス[ソスgソスソスソスノゑソス2ソス処暦ソスソスソスソスソストゑソスソスワゑソスソスワゑソスソスB
ソスAソスbソスvソスfソス[ソスgソスソスソスヘ趣ソスMソスソスソスソスIntentソスソスExtraソスノ「android.intent.extra.REPLACINGソスvソスニゑソスソスソスソスLソス[ソスナ「trueソスvソスソスソスlソス゚ゑソスソストゑソスソスソス謔、ソスネので、ソスソスソスソスソスソスgソスソスソスト費ソスソスfソスソスソスソスフゑソスソスヌゑソスソスソスソスソスソスナゑソスソスB
(Intentソスソス EXTRA_REPLACING ソスニゑソスソスト抵ソス`ソスソスソスソストゑソスソスワゑソス)
ソスソスソスニ「SDソスJソス[ソスhソスヨの移難ソス/ソスgソスム端ソスソスソスヨ移難ソスソスvソスソスソスソスソスソスソスソスソスソスBroadcastソスソスソスソス驍ゥソスニ思ソスソスソストまゑソスソスソスソスソスソスソスソスソスソスソスソスワゑソスソスソスナゑソスソスソスソスB


ソスワゑソスソスAソスネ会ソスソスヘゑソスソス黷シソスソスフアソスNソスVソスソスソスソスソスソスソスヌゑソスAPIソスソスソスxソスソスソスナ追会ソスソスソスソス黷スソスソスソスフ一覧ソスナゑソスソスB

android.intent.action.PACKAGE_ADDED (Lv1)
android.intent.action.PACKAGE_CHANGED (Lv1)
android.intent.action.PACKAGE_INSTALL (Lv1) (deprecated in Lv14)
android.intent.action.PACKAGE_REMOVED (Lv1)
android.intent.action.PACKAGE_RESTARTED (Lv1)
android.intent.action.PACKAGE_DATA_CLEARED (Lv3)
android.intent.action.PACKAGE_REPLACED (Lv3)
android.intent.action.PACKAGE_FIRST_LAUNCH (Lv12)
android.intent.action.PACKAGE_FULLY_REMOVED (Lv14)
android.intent.action.PACKAGE_NEEDS_VERIFICATION (Lv14)
android.intent.action.PACKAGE_VERIFIED (Lv17)


ソスソスソスソスソスツゑソスソスmソスFソスナゑソスソストなゑソスActionソスソスソスソスソスソスワゑソスソスB
FIRST_LAUNCHソスネゑソスト趣ソスMソスナゑソスソスソスソス迚スソスソスソスソスソスソスソスソスソスそソスソスソスネゑソスソスニゑソスソスoソスソスソスソスソスソスソスネ気ソスソスソスソスソスワゑソスソスソスソスAソスソスソスソスmソスFソスソスソスソスソスヘ囲では趣ソスMソスソスソスネゑソスソスソスソスソスソスナゑソスソスB
ソスソスソスソスpermissionソスナゑソスソスKソスvソスネゑソスナゑソスソス蛯、ソスソスソスB

ソスヌの托ソスソスソスナ、ソスヌゑソスBroadcastソスソスソスヘゑソスソスフゑソスソスAソスワゑソスソスソスソスラゑソスフゑソスソス゚ゑソスヌゑソスソスソスソスソスソスフでソスソスソスソスニゑソスソスト残ソスソスソスワゑソスソスソスソスB
ソスソスソスソスヘゑソスソスソスソスワで。

ソス^ソスOソスFandroid
posted by t2low at 21:00| Android

2013ソスN11ソスソス28ソスソス

[Android] SQLソスソスUPDATEソスナ更ソスVソスソスソス黷スソスsソスソスソスソスソス謫セソスソスソスソス

AndroidソスソスSQLiteDatabaseソスNソスソスソスXソスナ用ソスモゑソスソスソストゑソスソスソスupdate()ソスナは厄ソスソスソスソスソスソスソスソスソスSQLソス発行ソスソスソスソスKソスvソスソスソスソスソスソスワゑソスソスソスソスB
ContentProviderソスソスupdate()ソスソスソスナ呼ぶゑソスソス゚に、UPDATEソスナ変更ソスソスソス黷スソスsソスソスソスソスmソスソスネゑソスソスソスホなゑソスワゑソスソスソスB
ソスソスソスソスソスソスソスASQLiteDatabaseソスNソスソスソスXソスソスexecSQL()ソスヘ戻ゑソスlソスソスヤゑソスソスワゑソスソスソスB
UPDATEソスソスソスsソスソスソスOソスノ難ソスソスソスソスソスソスナ該ソスソスソスsソスソスソス調べてゑソスソスソスソスラゑソスソスナゑソスソス蛯、ソスソスソスB

ソスソスソスソスソスソスソスラてみゑソスソスニゑソスソスソスASQLiteStatement#executeUpdateDelete()ソスソスソスgソスソスソスホ変更ソスソスソス黷スソスsソスソスソスソスヤゑソスソストゑソスソスソスソス謔、ソスナゑソスソスB
SQLiteStatementソスソスSQLiteDatabase#compileStatement()ソスナ取得ソスソスソス驍アソスニゑソスソスoソスソスソスソスソスソスソスナゑソスソスB
ソスソスソスソスソスソスソスAソスソスソスフソスソス\ソスbソスhソスソスソスヌ会ソスソスソスソス黷スソスフゑソスAPI Level 11ソスナゑソスソスソスソスB
ソスcソスOソスネゑソスソス迪サソスン開ソスソスソスソスソスフアソスvソスソスソスソスAPI Level 9ソスソスソスソスホ会ソスソスソスソスソスソスソス\ソスソスフゑソスソス゚、ソスソスソスフソスソス\ソスbソスhソスヘ使ソスソスソスワゑソスソスソスB

ソスソスソスソスソスソスソスソスソスソスソスラてみゑソスソスニゑソスソスソスASQLソスソスchanges()ソスニゑソスソスソスソスソスソス\ソスbソスhソスソスソスソスソスソス謔、ソスナゑソスソスB
UPDATEソスソスソスソスソスsソスソスソスソスソスソスAソスソスソスソスソスソスchanges()ソスソスSQLソス発行ソスソスソスソスホ良ゑソスソスソスソスソスソスナゑソスソスB
public static int changes(SQLiteDatabase db) {
Cursor cursor = null;
try {
cursor = db.rawQuery("select changes();", null);
if (cursor.moveToFirst()) {
return cursor.getInt(0);
}
} finally {
if (cursor != null) {
cursor.close();
}
}
return -1;
}

ソスソスLソスフようソスネソスソス\ソスbソスhソスソスソス成ソスソスソスソスソスソスソストみゑソスソスニゑソスソスソスAソスソスソスメゑソスソスソスソスソスソスハゑソスソスヤゑソスソストゑソスソスワゑソスソスソスソスB
(ソスlソスソスソスmソスソスネゑソスソスソスソスソスソスナ標ソスソスソスフクソスソスソスXソス窿ソス\ソスbソスhソスナ出ソスソスソスソスソス閧キソスソスだろうソスソスソスcソスH)
ソスニりあソスソスソスソスソスヘゑソスソスフソスソス\ソスbソスhソスソスソスgソスソスソストゑソスソスソスソスソスソスニ思ソスソスソスワゑソスソスB


ソス^ソスOソスFandroid SQLite
posted by t2low at 21:00| Android

2013ソスN11ソスソス27ソスソス

[Android] IMEソスネ外ソスソスソスソスpソスXソスソスソス[ソスhソスソスソスソスヘゑソスソスソスソスソスニゑソスソスナゑソスソスAソスソスソスソスソスソスソスかソスソス謔、ソスノゑソスソスソス

ソスpソスXソスソスソス[ソスhソスソスソスソスヘゑソスソスソスソスハゑソスソスソスソスソストゑソスソスワゑソスソスB
ソスソスソスフ会ソスハではアソスvソスソスソスソスソス\ソスソスソスソスソスソスLソス[ソス{ソス[ソスhソスソスソスgソスソスソスソスソス゚、IMEソスヘ使ソスソスソスワゑソスソスソスB
ソスLソス[ソス{ソス[ソスhソスソスソスソスソスソスソスソスソスxソスノ以会ソスソスフようソスネコソス[ソスhソスソスソスソスソスsソスソスソストゑソスソスワゑソスソスソスソスB
textView.setText(textView.getText() + moji);

ソスソスソスフ包ソスソス@ソスナゑソスソスソスソスソスソスフ追会ソスソスヘ出ソスソスソスワゑソスソスソスソスAソスソスソスヘゑソスソスソスソスソスソスソスソスソスソスかソスソスワゑソスソスソスB
ソス}ソスXソスNソスソスソス黷スソスソスヤで表ソスソスソスソスソスソストゑソスソスワゑソスソスフでゑソスソスB
ソスハ擾ソスナゑソスソスソスホパソスXソスソスソス[ソスhソスソスソスヘ暦ソスソスヘソスソス竅懶ソスナマソスXソスNソスソスソスソスソスOソスソス1ソスbソスソスソスxソスソスソスソスソスソスソスmソスFソスナゑソスソス骼橸ソスヤゑソスソスソスソスソスワゑソスソスB

ソスソスソスハな擾ソスソスソスソスソスソスKソスvソスソスソスニ考ソスソスソスワゑソスソスソスソスソスソスAソスネゑソストゑソスソスニはゑソスソスソスワゑソスソスソスナゑソスソスソスソスB
TextViewソスノ包ソスソスソスソスソスヌ会ソスソスソスソス驍スソス゚のソスソス\ソスbソスhソスソスソスpソスモゑソスソスソストゑソスソスワゑソスソスソスソスB
textView.append(moji);

ソスソスソスソスナ奇ソスソスメ通ゑソスフ難ソスソスソスソスノなゑソスワゑソスソスソスソスB

ソスソスソスワゑソスTextViewソスフ托ソスソスソスヘほとゑソスソスgetText()/setText()ソスナ行ソスソスソストゑソスソスソスソスフで、append()ソスフ托ソスソスンに気ソスtソスソスソスワゑソスソスソスナゑソスソスソスソスB
ソスvソスソスソスソスソスンはダソスソスソスナゑソスソスヒ。


posted by t2low at 21:00| Android

2013ソスN11ソスソス26ソスソス

[Android] ソスヌ趣ソスソスソスソス謫セソスソスソスソス

Activityソスノ壁趣ソスソスソスソス謫セソスソスソス驛ソス\ソスbソスhソスソスソスソスソスソスソスソスソス謔、ソスネ気ソスソスソスソスソスソスAソスニゑソスソスソスソスソスソスニで、Eclipseソスフ補完ソス@ソス\ソス頼ゑソスノとりあソスソスソスソスソスgソスソスソストみまゑソスソスソスソスB
Drawable wallpaper = getWallpaper();

ソス謫セソスナゑソスソスワゑソスソスソスソスBソスホんざーソスソスソスB
ソス皷橸ソスAソスソスソスtソス@ソスソスソスソスソスXソスソスソスソスソストみまゑソスソスB

Context | Android Developers

API Level5ソスソスdeprecatedソスノなゑソスソストゑソスソスワゑソスソスソスソスB
(Eclipseソスナは警ソスソスソスソスソスoソスネゑソスソスフは会ソスソスフでゑソスソス蛯、ソスcソスH)
ソスソスソスノゑソスソストゑソスソスAWallpaperManagerソスソスソスgソスソスソスソスソスソスソスソスソスヌゑソスソス謔、ソスナゑソスソスB
WallpaperManager wpm = WallpaperManager.getInstance(getApplication());
Drawable wallpaper = wpm.getDrawable();
// ソスワゑソスソスソス
Drawable wallpaper = wpm.getFastDrawable();

ソスソスソスソスナゑソスソスソスソスネゑソスソス謫セソスナゑソスソスワゑソスソスソスソスB
ソスヌ趣ソスソスフ取得ソスヘ簡単ソスナゑソスソスヒ。
posted by t2low at 21:00| Android

2013ソスN11ソスソス25ソスソス

[Android] DialogFragmentソスフ呼び出ソスソスソスソスソスナ鯉ソスソスハゑソスmソスソスノゑソス

ソス_ソスCソスAソスソスソスOソスソスソスフソスソス[ソスUソスソスソスソスソスヘゑソスソスソスソスソスソスソスソスAソス_ソスCソスAソスソスソスOソスソスソストび出ソスソスソスソスFragmentソスソスソスナ知ソスソスKソスvソスソスソスoソストゑソスソスワゑソスソスソスソスB
ソスツまゑソスAソスRソス[ソスソスソスoソスbソスNソスソスソスソスdソスgソスンゑソスソス~ソスソスソスソスソスニ思ソスソスソスソスソスフでゑソスソスB
public class HogeDialogFragment extends DialogFragment {
// ... HogeDialogFragmentソスフ趣ソスソスソス

public interface Callback {
void onFuga();
}
}

ソス_ソスCソスAソスソスソスOソスヘ擾ソスLソスフようソスソスDialogFragmentソスソスソスpソスソスソスソスソスト趣ソスソスソスソスソスソストゑソスソスワゑソスソスB
ソスソスソスフゑソスソス゚、ソスRソスソスソスXソスgソスソスソスNソス^ソス窿ソス\ソスbソスhソスソスソスgソスソスソスソスCallbackソスソスnソスソスソスフはゑソスしソスソスソスネゑソスソスソスソスソス(ソスソス)ソスナゑソスソスB
(ソスソスソスVソスXソスeソスソスソスソスソスソスFragmentソスソスソスト撰ソスソスソスソスソスソス黷スソスニゑソスソスノ云ソスXソスニゑソスソスソスソスbソスソスソスソスソスソスワゑソスソスソス)
ソスソスソスノ良ゑソスソスソスソス@ソスソスソスソスソス驍ゥソスソスソスラてみまゑソスソスソスソスソスソスAソスヌゑソスソスソスソスソスソスソスソスソスソスソスソスソスソスdソスgソスンはなゑソスソス謔、ソスナゑソスソスB

ソスソスソスいソスソスニ抵ソスソスラて、ソスソスソス黷オソスソスソスネゑソスソスソスソスネゑソスソスAソスニゑソスソスソスソスフゑソスソスネ会ソスソスフようソスネ包ソスソス@

1.9. DialogFragment ソスソスソスソスソスソス ソス| Kojionilk

android - Callback to a Fragment from a DialogFragment - Stack Overflow

ソスソスソスソスソスAソスソスソスフ包ソスソス@ソスソスソスニ呼び出ソスソスソスソスソスフクソスソスソスX(ActivityソスソスFragment)ソスソスCallbackソスソスソスソスソスソスソスソスソスネゑソスソスソスホなゑソスネゑソスソスソスナゑソスソスソスヒ。
public class HogeHogeFragment extends Fragment 
implements HogeDialogFragment.Callback {
// ...HogeHogeFragmentソスフ趣ソスソスソス
}

ソスソスソス[ソスソスAソスソスソス[ソスソスcソスBソスネんだゑソスソスCソス}ソスCソス`ソスネ…ソスBソスナゑソスソスAソスソスソス黷オソスソスソスソスソス@ソスソスソスネゑソスソスソスソスソスソスネ…ソスBソスソスソス[ソスソスcソスB
posted by t2low at 21:00| Android

2013ソスN11ソスソス22ソスソス

[Android] AlertDialogソスソスgetButton()ソスソスnullソスソスヤゑソス

DialogソスソスOKソス{ソス^ソスソス(Positiveソス{ソス^ソスソス)ソスフ抵ソスソスソスソスソスソス判定しソスソスソスソスソスト、ソスネ会ソスソスフようソスネコソス[ソスhソスソスソスソスソスソスソスワゑソスソスソスソスB
Builder builder = new Builder(getActivity());
builder.setTitle("title").setMessage("message");
builder.setPositiveButton(android.R.string.ok, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dismiss();
}
});

AlertDialog dialog = builder.create();
Button positiveButton = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
positiveButton.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
return false;
}
});


ソスソスソスソスソスソスソスソスsソスソスソスソスニ、NullPointerExceptionソスソスソスソスソスソスソスソスソストアソスvソスソスソスソスソスル擾ソスIソスソスソスソスソスワゑソスソスソスソスB
11ソスsソスレゑソスdialog.getButton()ソスソスnullソスソスソスヤ却ソスソスソスソストゑソスソス驍スソス゚でゑソスソスB
Webソスソスソスソスソスソスソスソスソストみゑソスニ以会ソスソスフ擾ソスが鯉ソスソスツゑソスソスソスワゑソスソスソスソスB

Issue 6360 - android - AlertDialog getButton() return null - Android Open Source Project - Issue Tracker - Google Project Hosting

ソスヌゑソスソスソスDialogソスソス\ソスソスソスソスソストゑソスソスソスナなゑソスソスソスnullソスノなゑソスソストゑソスソスワゑソスソス謔、ソスナゑソスソスB
ソス\ソス[ソスXソスRソス[ソスhソスソスヌゑソスナみゑソスソスDialogソスソスonCreate()ソスソスハゑソスネゑソスソスニ抵ソスソスソスViewソスソスソスソスソスソスソスソスソスソスネゑソスソス謔、ソスナゑソスソスソス(ソスソスソスヤゑソス)ソスB
Dialogソスソスソス\ソスソスソスソスソス黷スソスニゑソスソスソスソスOnLongClickListenerソスソスソスZソスbソスgソスソスソス驍アソスニにゑソスソスワゑソスソスソスソスB


Builder builder = new Builder(getActivity());
// ... ソスネ暦ソス ...

AlertDialog dialog = builder.create();
dialog.setOnShowListener(new OnShowListener() {
@Override
public void onShow(DialogInterface dialog) {
Button positiveButton = ((AlertDialog) dialog).getButton(DialogInterface.BUTTON_POSITIVE);
positiveButton.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
return false;
}
});
}
});


ソスソスソスソスソス゚ゑソスヌゑソスソスソスソスソスソスナゑソスソスソスソスAソスソスソスソスネゑソスソスソスvソスナゑソスソスソスソスB
posted by t2low at 21:00| Android

2013ソスN11ソスソス21ソスソス

[Eclipse] override

ソスpソスソスソスソスソスフクソスソスソスXソスフソスソス\ソスbソスhソスソスoverrideソスソスソスソスソスソスソス鼾ソスAソスヌのようソスノソスソス\ソスbソスhソスソスソスソスソスソスソストゑソスソスワゑソスソスソスソスH
ソスlソスヘゑソスソスソスワで、Eclipseソスフソスソスjソスソスソス[ソスソスソスソスuSourceソスソスOverride/Implement Methods...ソスvソスソスIソスソスナ、Eclipseソスノ撰ソスソスソスソスソスソストゑソスソスソスソスソストゑソスソスワゑソスソスソスソスB
Windowsソスソスソスgソスソスソストゑソスソスソスソスソスソスヘ、AltソスLソス[ソスソスソスgソスソスソストキソス[ソス{ソス[ソスhソスソスソスソスソスナ托ソスソスソスナゑソスソストゑソスソスソスソスフでゑソスソスソスソスAMacソスソスソスgソスソスソス謔、ソスノなゑソスソストゑソスソスソス}ソスEソスX(ソス^ソスbソス`ソスpソスbソスh)ソスソスソスgソスソスネゑソスソスソスホゑソスソスソスソスネゑソスソスネゑソスハ倒ソスノ奇ソスソスソスソストゑソスソスワゑソスソスソスソスB
Macソスナはキソス[ソス{ソス[ソスhソスVソスソスソス[ソスgソスJソスbソスgソスソスン定すソスソスホ良ゑソスソスフは知ソスソスソストゑソスソスワゑソスソスソスソスソスソスAソスソスソス書ゑソスソスソスソスソスソスフはゑソスソスソスソスナはゑソスソスソスワゑソスソスソスB

ソスソスソスツゑソスソスフようソスソスEclipseソスナコソス[ソスhソスソスソスソスソスソスソストゑソスソスト、ソスモと気ソステゑソスソスワゑソスソスソスソスB
ソスNソスソスソスXソスソスソスソスoverrideソスソスソスソスソスソスソスソスソス\ソスbソスhソスソスソスソスソスソスソスソスソスnソス゚てゑソスソスソスAソスRソス[ソスhソス竓ョソスソスソスsソスソスソスニゑソスソスフソスソス\ソスbソスhソスフ托ソスソスソスネゑソスソスLソスqソスソスソスソスソストゑソスソスソスソスソスナゑソスソスヒ!
override_completion.png
ソスソスソスソスヘ知ソスソスワゑソスソスソスナゑソスソスソスソスB
ソスソスマ便暦ソスソスナゑソスソスBソスソスソスソスソスソスEclipseソスナゑソスソスヒ。ソスソスソスソスソスソスソスB
ソスソスソスソス[ソスAソスRソス[ソスhソスソスソスソスソスソスソスフゑソスソスソスソスソスワゑソスソスB

posted by t2low at 21:00| Eclipse

2013ソスN11ソスソス20ソスソス

[Android] Toast


ソスAソスvソスソスソスフ難ソスソスソスソスソスソスソスソスソスソスニ確ソスFソスソスソスソスソスソスソスニゑソスソスソスToastソスソスソスgソスソスソスニ便暦ソスソスナゑソスソスB
ソスJソスソスソスソスソスノよくソスソスソスソスソスソスネ形ソスフコソス[ソスhソスソスgソスン搾ソスソスンまゑソスソスB

Toast.makeText(context, "hoge", Toast.LENGTH_SHORT).show();


ソスソスソスソスソスAToastソスヘキソスソスソス[ソスCソスソスソスOソスソスソスソストゑソスソスソス謔、ソスナ、ソスソスソスソスソスツゑソスソスソスLソスRソス[ソスhソスソスソスソスソストゑソスソスワゑソスソスニ呼び出ソスソスソスソスソス数包ソスソス\ソスソスソスソスソスソストゑソスソスワゑソスソスAソスネゑソスソスネゑソスソスソスソスソスソストゑソスソスソスネゑソスソスネゑソスワゑソスソスB
ソスソスソスソスネとゑソスソスヘキソスソスソスソスソスZソスソスソスソスソスワゑソスソス蛯、ソスB

if (toast != null) {
toast.cancel();
}
toast = Toast.makeText(context, "hoge", Toast.LENGTH_SHORT);
toast.show();


ソスソスソスソスソスAcancel()ソスソスソストゑソスソスAソスpソスbソスニ擾ソスソスソスソスワゑソスソスソスB
ソスワゑソスソスAソスLソスソスソス[ソスCソスソスソスOソスソスソスソストゑソスソス髢「ソス\ソスソスソスソスToastソスソスcancel()ソスソスソスソスソスニゑソスソストゑソスソスAソスソスソスソスソスソスソスヤゑソスソスソスソスしソスワゑソスソスB
ソスソスソスXソスAソスソスソスソスソスト表ソスソスソスソスソスソス謔、ソスノは搾ソスソスソストゑソスソスネゑソスソスフで、ソスソスハの擾ソスソスソス\ソスソスソスソスソスソスソスソスソスソスソスLogソスNソスソスソスXソス竭シソスフクソスソスソスXソスソスソスgソスソスソスソスソスソスソスソスソスヌゑソスソスナゑソスソスヒ。

Toastソスフ使ソスソスソスソスソスヘゑソスソスソスソスソス
Toasts | Android Developers

ToastソスソスAPIソスソスソスtソス@ソスソスソスソスソスXソスヘゑソスソスソスソスソス
Toast | Android Developers


(ソスナ近アソスEソスgソスvソスbソスgソスソスソス蜴厄ソスソスソスニ考ソスソスソスト、ソスニりあソスソスソスソスソスソスソスソスソスソスソスソスソスソスソスニ思ソスソスソスソスソスソスソスヌ、ソスソスソスソスソスソスソスニ思ソスソスソスツゑソスソスネゑソスソストゑソスソスソスネ記ソスソスソスソスソスソスソスソスソスソスソスソスソスソス)
ソス^ソスOソスFandroid
posted by t2low at 21:00| Android

2013ソスN11ソスソス15ソスソス

[Android] FragmentソスソスソスソスWebViewソスナ撰ソスヌみゑソスソスソスノはどゑソスソスソスソスソスホ良ゑソスソスソスソスうソスH

ソスdソスソスソスソスAndroidソスAソスvソスソスソスJソスソスソスソスソスソスソストゑソスソスワゑソスソスB
ソスソスソスソスソスソスソスネソスソスNソスGソスXソスgソスソスソスソスソスソスワゑソスソスソスソスB

ソスuソスLソスソスソスソスソス\ソスソスソスソスソスソスソスワでに趣ソスソスヤゑソスソスソスソスソスソスソスソストゑソスフで撰ソスヌみでゑソスソスワゑソスソスか?ソスv

DialogFragmentソスソスWebViewソスソスソスレゑソスソスト、onCreateView()ソスソスソスソスURLソスソスヌみ搾ソスソズようソスノゑソスソストゑソスソスワゑソスソスソスソスソスソスAソスソスソスフ趣ソスソス_ソスナ読み搾ソスソスン始ソス゚ゑソスソスフでは遅ソスソスソスソスソスソス謔、ソスナゑソスソスB


ソスEDialogFragmentソスフコソスソスソスXソスgソスソスソスNソス^ソスソスWebViewソス生撰ソスソスソスソスト読み搾ソスソスワゑソスソスソスフはどゑソスソスソス
ソスソスWebViewソスソスソスソスソスソスソスナゑソスソスワゑソスソスソスcソスB

WebViewソス生撰ソスソスソスソスソスノゑソスContextソスソスソスKソスvソスナゑソスソスソスソスAcontextソスソスソスソスソスソスワゑソスソスソスcソスB
getActivity()ソスヘゑソスソスフ趣ソスソス_ソスナゑソスnullソスソスヤゑソスソスワゑソスソスB
ソスxソスソスソスニゑソスonAttach()ソスワで呼ばゑソスソスソスgetActivity()ソスソスactivityソスソスヤゑソスソストゑソスソスソスソス謔、ソスノなゑソスワゑソスソスソスソスAonAttach()ソスソスソストばゑソスソスフはゑソスソスツゑソスソスニ考ソスソスソスソスニ、DialogFragment#show()ソスソスソストんだ鯉ソスナゑソスソスフで、ソスソスヌみになゑソスワゑソスソスソスB


ソスEDialogFragmentソスソスソストび出ソスソスソスNソスソスソスXソスソスWebViewソスソスソスソスソスソストはどゑソスソスソス
ソスソスWebViewソスソスソスnソスソスソスワゑソスソスソスcソスB

Fragmentソスフ使ソスソスソスソスソスニゑソスソストは茨ソスソスソスソスネゑソスソスフコソスソスソスXソスgソスソスソスNソス^ソスソスソスKソスvソスナゑソスソスB
Fragmentソスソスソスpソスソスソスノ値ソスソスソスKソスvソスナゑソスソスソスホ、setArguments()ソスナ渡ソスソスソスKソスvソスソスソスソスソスソスワゑソスソスB
setArguments()ソスフ茨ソスソスソスソスソスBundleソスナ、BundleソスノゑソスViewソスヘ詰ソス゚ゑソスソスワゑソスソスソスB
Viewソスソスnソスソスソスソスソス\ソスbソスhソスソスソスソスソスホ渡ソスソスソスネゑソスソスソスソスニゑソスソスネゑソスソスニ思ソスソスソスワゑソスソスソスソスAソスソスソスソスヘゑソスソスソスソスソスニねゑソスソスB


ソスソスソスヌ、ソスソスソスソスソスがわかソスソスワゑソスソスソスナゑソスソスソスソスB
DialogFragmentソスソスソスgソスソスソスフゑソスソスソス゚、Dialogソスソスソスノ鯉ソスソスソスソスソスソスソスソスソスソスソスソスCソスAソスEソスgソスソスソスソスソスソストゑソスソスソスソスソスソスノゑソスソスソスソスワゑソスソスソスソスB
ソス^ソスOソスFandroid
posted by t2low at 22:00| Android