原创 adb server is out of date.killing... adb server didn't ACK

之前ADB無法啓用,遇到N中情況,常用的解決辦法就是重啓Eclipse和ADB。 Windows系統的就是win+R——>cmd輸入adb kill-server,然後adb start-server。這樣就重啓ADB了。 不過,好像第一

原创 Maven eclipse

只是一個轉載 原博客地址:http://www.blogjava.net/fancydeepin/archive/2012/07/13/eclipse_maven3_plugin.html 點贊 收藏 分享

原创 Java project in Eclipse: The type java.lang.Object cannot be resolved.

This is an annoying Eclipse Bug which seems to bite now and then. See http://dev-answers.blogspot.de/2009/06/eclipse-b

原创 上轉型對象

上轉型對象具有如下特點: 1)上轉型對象不能操作子類新增的成員變量(失掉了這部分屬性),不能使用子類新增的方法(失掉了一些功能). 2)上轉型對象可以操作子類繼承或隱藏的成員變量,也可以使用子類繼承的或重寫的方法. 3)上轉型對象操作子類

原创 Android HttpPost

記錄一個成功例子: MainActivity類 import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util

原创 Java閉包

聲明 本文會大致講解下java 閉包(請允許我這麼稱呼Closure,因爲javascript好多書都是這麼翻譯的),本文的內容是從Understanding the closures debate摘抄翻譯出來的,如果你英文夠好並且耐心

原创 java類初始化順序

//如下例子,清楚地說明了繼承了父類的子類的初始化過程class Parent {       // 靜態變量       public static String p_StaticField = "父類--靜態變量";       //

原创 篩選算法求素數

#include<iostream> using namespace std; const int MAXV = 10000; //素數表範圍 bool flag[MAXV+1]; //標誌一個數是否爲素數 int prime[

原创 Error: Could not create the Java Virtual Machine.

最近使用Android Studio開發Android應用時,將studio更新到最新版後,就出錯了。出錯信息如下: Error:Unable to start the daemon process. This problem migh

原创 Android SQLite Cursor讀取空表出錯

在開發一個安卓應用,需要讀取SQLite數據庫。讀取一張空表時出錯: 其中的一個tag爲"Signup"的內容,"1  /truetrue",對應的程序段如下: db = dbHelper.getWritableDatabase();

原创 ADT:Tag missing required attribute name.

缺少所需的屬性名。 我遇到的情況是將 android:name= android:label= 寫成了 name= label= 點贊 1 收藏 分享 文章舉報 asphaltt

原创 View.setTag()的作用

這個東西在一些需要用到Adapter自定控件顯示方式的時候非常有用 Adapter 有個getView方法,可以使用setTag把查找的view緩存起來方便多次重用 public View getView(int position, Vi

原创 java.io.filenotfoundexception: the system cannot find the file specified

記錄一個成功例子。 在Java EE項目下,想讀取圖片,就遇到了這個問題。 問題描述:讀取圖片並轉化爲byte數組。 然後百度、谷歌了一遍又一遍,最終找到了思路解決了問題。 ByteArrayOutputStream out = n

原创 ImportError: No module named 'ConfigParser'

Resolve Method: I found the problem. I had manually installed a newer version of python (version 3.2 but the version i

原创 唯品會面試總結

這是我第一次專業相關的面試。 儘管說,做了一兩個不怎麼成功的項目,就想進唯品會,有點癡心妄想,但我還是去了。 2點鐘去到那兒,拿到門卡就進去填資料等着面試;等的時候,還是有點小緊張的。 帶到面試室,看到和藹可親的面試官,氣氛瞬間愉悅了很多