Y Cheung 有張SIM卡很奇怪,在 Pixel 7a手機上無法使用,能識別出號碼,但是就是無法註冊網絡,而這張卡在iPhone上使用是沒問題的。於是上網查了一下,原來是Google搞的鬼!連韓國網友也深受其害。幸好不是沒有解決方案,一二三,搞起!
Volley官方文檔說:
“Volley is not suitable for large download or streaming operations, since Volley holds all responses in memory during parsing. For large download operations, consider using an alternative like DownloadManager.”
這是真的,特別是內存小的手機,使用Volley下載很多文件或者單個大文件就不是很恰當了。這裡的large是相對手機內存大小而定。
新建一個安卓項目, compileSdkVersion 29,然後啟動MainActivity就看到 Logcat中有警告信息:
1Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; 雖然不會拋出錯誤或異常,但是看到也很噁心。
Media Play 設置 # Video Location 選擇 Absolute Path Or URL。 找到安卓設備SDCard的根目錄(ROOT PATH) # 如果電腦上安裝了adb工具,使用指令 adb shell echo $EXTERNAL_STORAGE 打印SD Card Root directory。 如果安卓設備上安裝了terminal工具,(比如Terminal Emulator for Android),使用指令 ls 根據經驗篩選可能的目錄。 一般而言,SD卡的根目錄可能但不限於以下幾種: /mnt/sdcard /storage/sdcard0 /storage/sdcard /sdcard 設置權限 # 在 AndroidManifest.xml 文件中的<uses-sdk前添加以下語句: 1<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 通常該文件位於Assets/Plugins/Android/文件夾內,該配置文件詳解請參閱官方文檔《App Manifest》(有中文版)。