Android端末の実機画面キャプチャをすばやくパワポに貼る方法

最近のスマホ開発では「UI/UX」とかいう言葉を無視して通ることはできません.

こんな言葉はガラケーの時代にはありませんでした.

で, 新しいサービスを始めようとするとき, 企画や設計の段階で明確に人に伝えるために, 打ち合わせなどの資料にAndroid端末上の画面の静止画を貼る必要があったりします.

最近のAndroidには「screencap」という機能が実装されており, ADB経由で簡単に端末上の画面キャプチャを静止画像ファイルで取得できたりできるようになりました.

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

これで, パワポで資料を作っているパソコン上にそんな画像ファイルを持ってくることができます.

けど, サイズが大きすぎたりしてその度にリサイズなどするのも面倒なので, imageMagick などを使ってやったりしていました.

コマンドラインからAndroidのスクリーンショットをPCデスクトップに取得する方法

端末上の動画であれば同様に「screenrecord」で.

Android OS 4.4(Kitkat) の動画キャプチャ機能「screenrecord」をどう使うか

Wi-Fi経由で複数端末で行ったりとかも.

ADBオーバーネットワークでWiFiで複数端末を一括接続する

けれど, パソコン上に取得できるのは「画像ファイル」としてなので, それを パワポやワードとかに貼るのが, これまた面倒です.

クリップボードに画像を読み込んで「コピペ」で作成中のドキュメントには簡単に貼り付けちゃいましょう.

続きを読む >>


日本上陸「Chromecast」を購入したら

ついに日本上陸です.

4200円で国内からでも購入できます.

以下, 本家 Google から進むのが筋かと.

Chromecast

Chromecast

輸入で購入していたあたしなりの

「そうだったんだ」

的な感想というか, 先輩ヅラ話を.

続きを読む >>


AndroidStudio からアプリを停止したりデータを消したりアンインストールできるプラグイン「ADB Idea」

Android Studio から 現在作業しているアプリに対して以下の操作がターミナルを開けることなく, GUI上から操作できます.

ADB Uninstall App
ADB Kill App
ADB Start App
ADB Restart App
ADB Clear App Data
ADB Clear App Data and Restart

アプリを停止したり, そのアプリ内のデータを削除する場合などに便利です.

Android Studio(IDEA) のプラグインとして, 公開されています.

JetBrains Plugin Repository :: ADB Idea

pbreault/adb-idea · GitHub

Android Studio 上からは, [Preferences]-[Plugins] から検索してインストールできます.

Browse_Repositories_と_Preferences

インストール後, 前述のADBコマンドを実行する方法は2通り.

続きを読む >>


【英検/TOEIC】英単語・熟語 を 音声付きカードで覚えることができる「Ankidroid (Anki) 」で爆速暗記すべし

別に, 英単語でもなくてもいいけども.

テキストでの

「問題」と「解答」

のペアを覚える方法.

target1900-41

昔ながらの「書いて覚える」という方法とともに

「カード」を使った方法も効率的だろうと思います.

いまどきは, だれもがスマホを持ってる時代.

スマホは 世界中で喋られてる言語をある程度流暢に喋ることができますよね.

そんなスマホをつかって, 目だけでなく, 耳も使って効率的に

「音声付きカード」スタイルで単語を覚えていく方法をば.

続きを読む >>


homebrew で jad を入れようとする その前に「brew tap」?

Homebrew_·_GitHub

homebrewでjadを入れる - 銀の人のメモ帳

Jarとかclassファイルをデコンパイルしてくれるやつ。

brew tap homebrew/binary
brew install jad

さらっと, 眺めて jad いれてみようと,

~ $ jad
-bash: jad: command not found
~ $ brew search jad
homebrew/binary/jad
~ $ brew install jad
Error: No available formula for jad
Searching taps...
homebrew/binary/jad
~ $ jad
-bash: jad: command not found

ん, tap するのか.

~ $ brew tap homebrew/binary
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-binary'...
remote: Reusing existing pack: 137, done.
remote: Total 137 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (137/137), 21.78 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Tapped 13 formula
~ $ brew install jad
Downloading http://www.varaneckas.com/jad/jad158g.mac.intel.zip
==> Downloading http://www.varaneckas.com/jad/jad158g.mac.intel.zip
######################################################################## 100.0%
 /usr/local/Cellar/jad/1.5.8g: 4 files, 456K, built in 5 second
> ~ $ ja
> Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov ([email protected])
> Usage:    jad [option(s)] <filename(s)>
> Options: -a       - generate JVM instructions as comments (annotate
>         -af      - output fully qualified names when annotatin
>         -b       - generate redundant braces (braces
>         -clear   - clear all prefixes, including the default one
>         -d <dir> - directory for output file
>         -dead    - try to decompile dead parts of code (if there are any
>         -dis     - disassembler only (disassembler
>         -f       - generate fully qualified names (fullnames
>         -ff      - output fields before methods (fieldsfirst
>         -i       - print default initializers for fields (definits
>         -l<num>  - split strings into pieces of max <num> chars (splitstr
>         -lnc     - output original line numbers as comments (lnc
>         -lradix<num>- display long integers using the specified radi
>         -nl      - split strings on newline characters (splitstr
>         -noconv  - don't convert Java identifiers into valid ones (noconv
>         -nocast  - don't generate auxiliary cast
>         -noclass - don't convert .class operator
>         -nocode  - don't generate the source code for method
>         -noctor  - suppress the empty constructor
>         -nodos   - turn off check for class files written in DOS mod
>         -nofd    - don't disambiguate fields with the same names (nofldis
>         -noinner - turn off the support of inner classe
>         -nolvt   - ignore Local Variable Table entries (nolvt
>         -nonlb   - don't insert a newline before opening brace (nonlb
>         -o       - overwrite output files without confirmatio
>         -p       - send all output to STDOUT (for piping
>         -pa <pfx>- prefix for all packages in generated source file
>         -pc <pfx>- prefix for classes with numerical names (default: _cls
>         -pe <pfx>- prefix for unused exception names (default: _ex
>         -pf <pfx>- prefix for fields with numerical names (default: _fld
>         -pi<num> - pack imports into one line using .* (packimports
>         -pl <pfx>- prefix for locals with numerical names (default: _lcl
>         -pm <pfx>- prefix for methods with numerical names (default: _mth
>         -pp <pfx>- prefix for method parms with numerical names (default:_prm
>         -pv<num> - pack fields with the same types into one line (packfields
>         -r       - restore package directory structur
>         -radix<num>- display integers using the specified radix (8, 10, or 16
>         -s <ext> - output file extension (default: .jad
>         -safe    - generate additional casts to disambiguate methods/field
>         -space   - output space between keyword (if, while, etc) and expressio
>         -stat    - show the total number of processed classes/methods/field
>         -t<num>  - use <num> spaces for indentation (default: 4
>         -t       - use tabs instead of spaces for indentatio
>         -v       - show method names while decompiling

入れることはできたけど, 「brew tap」てなにをしてるのだろう.

続きを読む >>