Take android screenshot from terminal.
Write it on your .bashrc or .zshrc whatever.
alias screenshot='adb_peco.sh screenshot2 $TMPDIR/screenshot.png; open $TMPDIR/screenshot.png'
general: | |
branches: | |
only: 'master' | |
artifacts: | |
- 'build/libs' | |
machine: | |
java: | |
version: openjdk7 | |
test: | |
override: |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.Toast; | |
public class MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
Take android screenshot from terminal.
Write it on your .bashrc or .zshrc whatever.
alias screenshot='adb_peco.sh screenshot2 $TMPDIR/screenshot.png; open $TMPDIR/screenshot.png'
installapk() { | |
find ./ -name *.apk | peco | xargs adb install -r | |
} |
package jp.tomorrowkey.englishpractice; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
public class Main { | |
private static ArrayList<Item> itemArray; |
javascript:(function(){var t=document.getElementsByClassName('goog-tree-expand-icon-tplus');var e=document.createEvent('MouseEvents');e.initMouseEvent('mousedown',true,true,window,0,0,0,0,0,false,false,false,false,0,null);while(t.length>0){t[0].dispatchEvent(e);}})() |
package com.example.android.crushcloseable; | |
import java.io.Closeable; | |
import java.io.IOException; | |
import android.app.Activity; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import android.os.Bundle; |
FragmentManager fm = getSupportFragmentManager(); | |
FragmentTransaction ft = fm.beginTransaction(); | |
ft.add(new ConfirmDialogFragment(), "confirmdialog"); | |
ft.commit(); |