標籤:iOS9中新增App Transport Security(簡稱ATS)特性, 主要使到原來請求的時候用到的HTTP,都轉向TLS1.2協議進行傳輸。這也意味著所有的HTTP協議都強制使用了HTTPS協議進行傳輸。 錯誤資訊如下:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be
標籤:Error:Execution failed for task ‘:lenovoAlbum:processReleaseResources‘.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘Android_SDK\build-tools‘‘ finished with non-zero exit value 1
標籤: 要總結的是都很簡單,但是很重要的功能測試。定義功能測試:Functional testing is a quality assurance (QA) process and a type of black-box testing that bases its test cases on the specifications of the software component under test. Functions are tested by feeding
標籤:如果一個ListView太長,有時我們希望ListView在從其他介面返回的時候能夠恢複上次查看的位置,這就涉及到ListView的定位問題:解決的辦法如下:1234567// 儲存當前第一個可見的item的索引和位移量int index = mList.getFirstVisiblePosition();View v = mList.getChildAt(0);int top = (v == null) ? 0 : v.getTop();//
標籤: 新手在使用資料庫的時候,很容易忘記關閉Cursor,造成嚴重記憶體流失。有什麼好的方法解決這個問題呢?除了自己管理Cursor,有什麼辦法把Cursor交給系統管理,而不需要自己主動close呢?manageQuery可以為你維護這個cursor。在你退出activity時為你自動關閉。 The method managedQuery(Uri, String[], String, String[], String) from the type Activity
標籤:概述 Returns an Observable that emits the results of a specified combiner function applied to combinations of two items emitted, in sequence, by two other Observables.流程圖: 簡單來說zip操作符就是合并多個資料流,