API-23 で「can’t find referenced class org.apache.http.*」

API-23 に上げるとサードパーティなライブラリ群に対して, こんな...

error

削除されているのですね.

API_Differences_between_22_and_23

API Differences between 22 and 23

各ライブラリが対応されるまではどうしたらよいのか.

...
android {
       useLibrary 'org.apache.http.legacy'
       ...
}
...

Apache HTTP connection with Android 6.0 (Marshmallow) - Stack Overflow

なんだか気持ち悪い.

動作の変更点 | Android Developers


rootなしで Android 端末をブラウザから操作できる Koushik の「Vysor」

すごいです.

画像が少し粗いものの, 操作は全くストレスがありません.

Chromeエクステンションです.

Vysor__Beta__-_Chrome_ウェブストア

Vysor (Beta) - Chrome ウェブストア

サイトも公開されています.

Vysor

Vysor

強烈なのがこの機能.

Vysor Share
Share your device, across the office, or across the globe. Screen and ADB access to remote devices. Simple as sending a link.

Chromeエクステの画面からクリップボードに取得できるURLを外部に送ると,

Vysor_and_Vysor

そのURLをクリックしたPCでネットを経由してそのAndroid端末を使えるようになる!!

Vysor

当然, どちらのPCのChromeにもエクステをインストールしておくことが必要です.

驚きました.

Vysor Share Remote screen and ADB access There's a few tools already out that…


onActivityResult() を透過的に Fragment に渡す

Activity内のFragmentに, 別Activityからの結果を渡す.

...
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Fragment fragment = getFragmentManager().findFragmentById(R.id.your_fragment_id);
    if (fragment != null) {
        fragment.onActivityResult(requestCode, resultCode, data);
    }
}
...

fragment いなかったら正しく fragment.setArguments(bundle); で.