Skip to content

Instantly share code, notes, and snippets.

View wada811's full-sized avatar

wada811 wada811

View GitHub Profile
@wada811
wada811 / Jenkins Notifier
Last active August 29, 2015 14:05
Jenkins Notifier
## シェル
シェル実行ファイル
/usr/local/bin/zsh
## zsh-notify
[Mac][zsh]時間のかかるコマンドが終わったら自動で通知する | DevAchieve http://wada811.blogspot.com/2014/04/zsh-notify-command-completion.html
## Parameterized Trigger Plugin
Parameterized Trigger Plugin - Jenkins - Jenkins Wiki https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin
@wada811
wada811 / Handler Leak 対応
Created August 26, 2014 01:57
Handler Leak 対応
Handlerのリーク警告を解決するには - outcesticide http://outcesticide.hatenablog.com/entry/handler_leaks
ものぐさDev: 【Android】Handlerを気持よく使う http://monogusadev.blogspot.jp/2012/12/androidhandler.html
@wada811
wada811 / IntentService + ResultReceiver
Last active August 13, 2019 17:57
IntentService + ResultReceiver
# AndroidManifest.xml
<service android:name="MyIntentService" />
# IntentService + ResultReceiver
public class MyIntentService extends IntentService {
public static class MyResultReceiver extends ResultReceiver {
@wada811
wada811 / How to pass Enum by Intent
Created September 1, 2014 03:42
How to pass Enum by Intent
# Difinition
enum YourEnumType {
yourEnum
}
# Pass
intent.putExtra(EXTRA_KEY, yourEnum);
@wada811
wada811 / notification error on loader
Last active August 29, 2015 14:05
notification error on loader
android - Custom notification: java.lang.RuntimeException: ..crash on notification - Stack Overflow http://stackoverflow.com/questions/19309541/custom-notification-java-lang-runtimeexception-crash-on-notification
"CausedStacktrace":["at [Parcel#readIntArray:789]","at [INotificationManager$Stub$Proxy#enqueueNotificationWithTag:296]","at [NotificationManager#notify:124]","at [NotificationManager#notify:103]","at [k#a:-1]","at [k#a:-1]","at [e#u:-1]","at [e#d:-1]","at [a#e:-1]","at [b#a:-1]","at [b#a:-1]","at [r#call:-1]","at [FutureTask$Sync#innerRun:305]","at [FutureTask#run:137]","at [ThreadPoolExecutor#runWorker:1076]","at [ThreadPoolExecutor$Worker#run:569]","at [Thread#run:856]"],"cause":"java.lang.RuntimeException: bad array lengths","ExceptionStacktrace":["at [s#done:-1]","at [FutureTask$Sync#innerSetException:273]","at [FutureTask#setException:124]","at [FutureTask$Sync#innerRun:307]","at [FutureTask#run:137]","at [ThreadPoolExecutor#runWorker:1076]","at [ThreadPoolExecutor$Worker#run:569]","at [Thread
@wada811
wada811 / TimePickerDialog and DatePickerDialog
Created September 2, 2014 23:46
TimePickerDialog and DatePickerDialog
Android 4.1(Jerry Beans)以降のTimePickerDialogの動作が不可解 - Qiita http://qiita.com/yutetsu/items/a28a572775bc3648e78b
http://tools.oesf.biz/android-2.3.7_r1.0/xref/frameworks/base/core/java/android/app/TimePickerDialog.java
http://tools.oesf.biz/android-4.0.4_r1.0/xref/frameworks/base/core/java/android/app/TimePickerDialog.java
http://tools.oesf.biz/android-4.1.1_r1.0/xref/frameworks/base/core/java/android/app/TimePickerDialog.java
http://tools.oesf.biz/android-2.3.7_r1.0/xref/frameworks/base/core/java/android/app/DatePickerDialog.java
http://tools.oesf.biz/android-4.0.4_r1.0/xref/frameworks/base/core/java/android/app/DatePickerDialog.java
http://tools.oesf.biz/android-4.1.1_r1.0/xref/frameworks/base/core/java/android/app/DatePickerDialog.java
WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE);
List<WifiConfiguration> configuredNetworks = wifiManager.getConfiguredNetworks();
for(WifiConfiguration wifiConfiguration : configuredNetworks){
LogUtils.d("SSID: " + wifiConfiguration.SSID);
for(int i = 0; i < WifiConfiguration.AuthAlgorithm.strings.length; i++){
if(wifiConfiguration.allowedAuthAlgorithms.get(i)){
LogUtils.d(" allowedAuthAlgorithms: " + WifiConfiguration.AuthAlgorithm.strings[i]);
}
}
@wada811
wada811 / README.md
Last active August 29, 2015 14:06
わかりやすいREADME.mdを書く | SOTA http://deeeet.com/writing/2014/07/31/readme/

Name

Overview

Description

Demo

VS.

@wada811
wada811 / LICENSE.md
Last active August 29, 2015 14:06
Apache License Version 2.0

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

  1. Definitions.

    "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

public abstract class UiHandler extends Handler implements Runnable {
public UiHandler(){
super(Looper.getMainLooper());
}
public UiHandler(Handler.Callback callback){
super(Looper.getMainLooper(), callback);
}