原创 Android之ClassLoader類加載器(MultiDex、動態加載dex)

android中的類加載 先看個簡單的打印日誌,直接將代碼貼到Activity#onCreate()中即可: protected void onCreate(Bundle savedInstanceState) { //...其他

原创 Android廣播BroadcastReceiver

android中的四大組件之一,也是一種消息機制,可在app內、app間傳遞消息。還可以接受系統發送的廣播(開機廣播、網絡狀態等) 自定義廣播接收器 public class SomeReceiver extends Broadcas

原创 vim-cheat-sheet

vim命令手冊(並非vim教程) References: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html http://michael.people

原创 Android

AndroidOS Android版本歷史 API等級1:Android 1.0 API等級2:Android 1.1 Petit Four API等級3:Android 1.5 Cupcake API等級4:

原创 xml序列化/反序列化

xml 依賴開源庫XStream ,需要用到java註解 Talk is cheap,直接看代碼 測試用xml數據結構 <?xml version="1.0" encoding="UTF-8"?> <feed> <title>

原创 Error:Failed to open zip file. Gradle's dependency cache may be corrupt

在使用AndroidStudio直接導入GitHub中的源碼過程中,AS出現了某個過程感覺十幾分鍾了,其實代碼已經從GitHub中拉下來了,應該是AS執行項目配置時出了問題,遂直接結束了AS的進程; 從新打開AS時,Sync Gradl

原创 gradle 之 zip

gradle創建歸檔文件 實例 task compressMapping(type: Zip) { from "$buildDir/outputs/mapping" into 'mapping' baseName

原创 windows中安裝軟件時的錯誤

在windows中安裝軟件時提示如下錯誤: “the drive or unc share you selected does not exist or is not accessible, please select another”