This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RadioGroup | |
android:id="@+id/radiogroup" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:gravity="center_horizontal" | |
android:orientation="horizontal" > | |
<RadioButton | |
android:id="@+id/radio_btn_1" | |
style="@style/MyRadioButton" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.v4.app.NotificationCompat; | |
Notification notification = new NotificationCompat.Builder(this) | |
.setTicker("Ticker Title") | |
.setContentTitle("Content Title") | |
.setContentText("Notification content.") | |
.setSmallIcon(R.drawable.ic_launcher) | |
.build(); | |
notification.flags = Notification.FLAG_AUTO_CANCEL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundle args = new Bundle(); | |
manager = this.getFragmentManager(); | |
args.putSerializable(MyDialog.CANCEL_LISTENER, | |
new MyDialog.CancelListener() { | |
private static final long serialVersionUID = 1L; | |
@Override | |
public void cancel() { | |
somethingMethod(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onItemClick(AdapterView<?> parent, View view, int position, | |
long id) { | |
Button button1 = (Button) parent.getRootView().findViewById(R.id.button1); | |
button1.setTextColor(android.graphics.Color.RED); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// params = time(ms), function | |
setTimeout(execSamsung('Galaxy S4'), 2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ex) $ update table set path='/home/me/' where id=2; | |
$ update tablemane set element='' where id=idnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// keystoreのパスワードpassword、署名鍵aliasのパスワードkeypassの署名鍵を作る | |
// CNは組織名、0は部署、Cは国籍 | |
$ keytool -genkey -v -keystore hoge.keystore -storepass password -alias alias -keypass keypass -dname "CN=HOGE, O=FUGA, C=JP" -keyalg RSA -validity 10000 | |
// 未署名のAPKに署名する | |
$ jarsigner -verbose -keystore hoge.keystore sample.apk alias | |
keystore pass: password | |
keypass: keypass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// リモートブランチの確認 | |
$ git branch -r | |
// ローカルにチェックアウト | |
$ git checkout -b sub-branch origin/sub-branch |
OlderNewer