原创 使用chronometer顯示hh:mm:ss格式的計時

今天想到寫一個計時器,看到了android 的chronometer組件,api上說他是一個計時類組件,能夠調用start方法定時對其更新,stop方法對其停止。 我的需求是寫成一個能夠計時成hh:mm:ss格式的計時組件,開始腦袋有點暈

原创 網絡驗證更新組件報NetworkOnMainThreadException和ViewRootImpl$CalledFromWrongThreadException

今天試驗寫android獲得web交互,仿照李興華的web服務器交換數據。 添加了一些新的功能,即在EditText中輸入用戶名和密碼,然後生成url,反饋給http,並解析獲得數據。 實現時點擊button,出現了android.os.

原创 Java 的swing.GroupLayout佈局管理器的使用方法和實例

http://www.cnblogs.com/lionden/archive/2012/12/11/grouplayout.html 點贊 收藏 分享 文章舉報 Code_hea

原创 jsp quoted with " which must be escaped when used within the value

因爲 value='<%=request.getParameter("numItems")%>' />中的單引號問題 我使用apache-tomcat 7.0 中使用會出現這種錯誤。 org.apache.jasper.JasperEx

原创 判斷java,jdbc中ResultSet結果集是否爲空

http://blog.csdn.net/friendan/article/details/7039164http://blog.csdn.net/friendan/article/details/7039164 點贊

原创 超鍵、候選鍵、主鍵區別?

http://www.cnblogs.com/lumnm/archive/2010/11/08/1871783.html 點贊 收藏 分享 文章舉報 Code_headache

原创 JSON基礎學習

http://www.cnblogs.com/jianrong-zheng/archive/2013/07/26/3217228.html

原创 FileDialog的使用

http://hi.baidu.com/swearing/item/6dc9eafc05ab5dce531c26a6 點贊 收藏 分享 文章舉報 Code_headache 發

原创 怎樣在excel表格中讓填表者在所填單元格內只能選擇固定的文字

  http://url.cn/Qnp9RH 點贊 收藏 分享 文章舉報 Code_headache 發佈了21 篇原創文章 · 獲贊 7 · 訪問量 3萬+ 私信

原创 implicit super constructor Dialog() is undefined

該錯誤爲繼承的類中沒有無參數的構造方法,所以需要使用super()傳入父類中要求的有參數的對象。 博客 http://blog.itpub.net/25701553/viewspace-697932 點贊 收藏 分

原创 windows系統服務項管理

怎樣徹底刪除系統服務項 開始”——“運行”——“msconfig”回車  在“服務”裏面可以找到 至於刪除服務項,就請打開註冊表(“開始”——“運行”——“regedit”)然後依次打開HKEY_LOCAL_MACHINE\SYST

原创 android流量統計

原始想法是按一個鍵,就進行一次頁面跳轉,之後開始統計流量次數,單位進行變化。 後面懶了直接打開app就能進行統計了,使用了TrafficStats的getTotalTxBytes()這個方法來獲得打開app的總流量,app在後臺運行時,自

原创 andorid socket 傳輸序列化出現ClassNotFindException問題

http://waynehu16.iteye.com/blog/1530760

原创 freopen

#include <stdio.h> #include "iostream" #include <iomanip> using namespace std; int main() { int a,b; freopen("

原创 Java能不能繼承父類的protected和private方法?

Java能不能繼承父類的protected和private方法 子父類定義 Method的privateprotectedprivate方法探討 問題解決 總結 Java能不能繼承父類的protected和privat