---
# System prepended metadata

title: 臨時筆記

---

# 臨時筆記

[toc]



## clinet 和 server架構圖
- 架構1

![](https://i.imgur.com/cyfTfuE.png)

- 架構2
![](https://i.imgur.com/TPR7hu8.png)


## 處理模擬器麥克風輸入的問題

- 列出所開出來的模擬器
  - ```
    $> emulator -list-avds
       Pixel_4_API_30
    ```
- 啟動該模擬器的權限
 在android studio 的terminal貼上
  - ```
    $> emulator -avd Pixel_4_API_30 -qemu -allow-host-audio
       Warning: Allowing host microphone input.
    ```
![](https://i.imgur.com/mjstqgQ.png)




## 自我管理進度

ivan 練習如下

- [ ] app: intent broadcast
- [ ] app: 錄音api
[錄音機參考](https://ithelp.ithome.com.tw/articles/10209868?sc=iThelpR)

- [ ] app: http clinet
- [ ] okhttp kotlin
- [ ] Android kotlin okhttp post file to Server

https://www.baeldung.com/okhttp-post
http://web.tnu.edu.tw/me/study/moodle/tutor/vb6/tutor/r03/index.htm



https://github.com/gun123kk/IOT_jetson_nano_redis/blob/master/control_LED_from_redis/sub_redis_led.py




協程

https://kaixue.io/kotlin-coroutines-1/
https://medium.com/jastzeonic/kotlin-coroutine-%E9%82%A3%E4%B8%80%E5%85%A9%E4%BB%B6%E4%BA%8B%E6%83%85-685e02761ae0
https://www.bilibili.com/video/av67107689/

Lib GSON
https://givemepass.blogspot.com/2014/10/gson.html


ROAD Map

![](https://i.imgur.com/3Ulu94x.png)

okhttp kotlin
http://tw-hkt.blogspot.com/2020/07/android-okhttp-kotlin.html
