原创 requires a valid 9-patch source image

org.xmlpull.v1.XmlPullParserException: Binary XML file line #5: <nine-patch> requires a valid 9-patch source image 在

原创 改變模擬器的屏幕尺寸

  更改註冊表就OK了,然後重啓Bluestacks

原创 TextView點擊變色(selector)

1、新建:color/*.xml文件 2、內容:*.xml文件中的內容       <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schem

原创 簡單Python實例,以及打包成.exe文件

1、工具準備: 我的Python版本是python 3.x的 打包工具:cxfreeze,我的是 windows 32bit的 http://sourceforge.net/projects/cx-freeze/files/4.3.2/

原创 Webview響應簡單的

這個submit提交到了一個ssl鏈接,如果缺乏ssl證書,自己寫的webview就訪問不了 類似這樣的錯誤: onReceivedSslError  error=primary error: 3 certificate: Issue

原创 Flutter Navigator operation requested with a context that does not include a Navigator.

1、背景flutter 在做Navigator.push跳轉時,出現Navigator operation requested with a context that does not include a Navigator.問題。 2、

原创 簡單java Web Service服務端和Android客戶端

1、服務器端的說明: 工具:MyEclipse 8.5 1)創建Web Service Project 2)創建一個類: 3)實現一個簡單的方法,該方法爲返回一個簡單的“just a test”字符串 4)給該方法暴露在Servic

原创 Win7環境下用VirtualBox4.34安裝CentOS6.4版的Linux

安裝VirtualBox時,按它給的默認也可以,下面爲非圖形界面安裝:圖形安裝,教學視頻:http://itercast.com/ 主要是VirtualBox的配置: 1、管理->全局設定,設置在I:盤,本人當前的I:專門爲虛擬機分的盤,

原创 原子操作integer:msg.what值的產生

1、原子操作是爲了產生不重複的值:android中動態生成message中的msg.what的值 private static final AtomicInteger sNextGeneratedId = new AtomicInteg

原创 定製自己的android系統?

1、環境搭建:進入www.android.com 2、找到developer Resource->open source 3、http://source.android.com/source/initializing.html當前歷史時間

原创 連連看算法一點通

  1、兩個精靈都在同一橫軸或是縱軸 2、另外就是有一個轉角的,兩種情況箭頭向左或向右 3、最複雜,其實掌握下面的情況可以包含上面的所有的情況(重點分析)  3.1)在縱軸方向有一個共同的沒有精靈(障礙)的塊(黃色),判斷公共i_co

原创 Android design support library 通過gradle加載

1、在Android Studio項目的build.gradle(Module:app) 添加:compile 'com.android.support:design:* *代表着你現在support library的版本 compile

原创 關於window8安裝應用出現2503

參考地址:http://www.111cn.net/sys/windows8/59502.htm 在任意地方建立一個name.cmd文件,內容爲:msiexec /i 安裝文件絕對路徑 如:msiexec /i C:\Users\leno

原创 sourcetree換某個地址賬號

背景:gitlab.com通過bitbucket.org的賬號授權登錄,找不到密碼 gitlab.com項目的輸入密碼報錯,無賴在gitlab.com重新註冊賬號 通過sourcetree   https://gitlab.com/xx

原创 android 自動撥打含“#”如:*1234#的電話

1、需要給#加碼:不至於調用的時候出現#被和諧掉了 /** * 話費卡充值 */ private void callThePhone(String targetPhone) { if (St