Android

Table of Contents

面试题以及答案整理

https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README.md

https://github.com/futurice/android-best-practices

https://roadmap.sh/android

1. Little tools

1.1. adb

2. Android debug via Wi-Fi wifi [2019-07-11 Thu 16:51]

adb tcpip 5555
adb connect 172.20.10.8:5555
adb disconnect 172.20.10.8:5555

# get ip
adb shell ip -f inet addr show wlan0

3. Problems

3.1. Cann't download android studio

After redirect, replace https with http.

3.3. Intent.putExtra(Intent.EXTRA_STREAM, serializable)

Here, don't use `Collection<T>.toTypedArray(): Array<T>`. Because the return value is `Array`, which doesn't implement `Serializable` API.

Serializable collections:

  1. ArrayList

Not serializable collections:

  1. Array
  2. Collection
  3. List

4. Best Practices