Time of Update: 2018-12-05
1. ubuntu 12.04 64位2. 下載:1) Oracel JDK :http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html2) ADT bundle :http://developer.android.com/sdk/index.html3)android -studio
Time of Update: 2018-12-05
隨著android系統的發展,android已經得到廣泛的認可,作為一名普通的大學生,真的希望自己能在android系統上做一個可以讓大家使用、方便大家工作的一個軟體,最後決定做一個基於andriod的Word格式閱讀器。 經過一些尋找工作,終於找到了可以在android系統上使用的用於讀取Word格式文檔的開源包--POI(The Java API For Microsoft Documents)。:http://poi.apache.org/
Time of Update: 2018-12-05
下載 android 源碼 @ubuntu 12.04 2013年06月19日 星期三 16時23分21秒 參考資料:1. google : http://source.android.com/source/downloading.html#initializing-a-repo-client2. Github下載Android源碼 : http://www.cnblogs.com/akira90/archive/2013/03/08/2950631.html
Time of Update: 2018-12-05
有孩紙在做軟體設計大賽的一題目,需要能查看Doc 和各種office 文檔,搜尋自然便看到了POI,據說POI 文檔寫的不好,不過其他的貌似不是太簡單,就是太複雜。操作了一下,把檔案開啟了。記錄一下。1. POI 項目首頁:點擊開啟POI首頁首頁上很大的幾個單詞: Apache POI - the Java API for Microsoft Documents2. 下載了最新的 3.9 的 bin 和 src 。3. 看見首頁裡有 component
Time of Update: 2018-12-05
Android SDK是google提供的可在windows/linux/mac平台上開發android程式的工具包。Android SDK(android-sdk-linux_x86-1.5_r3)的目錄結構:|-- RELEASE_NOTES.html|-- add-ons| |-- README.txt| `-- google_apis-3 (API包,主要是Google Map的API)|-- docs (文檔)| |--
Time of Update: 2018-12-05
轉自:http://embed.chinaitlab.com/J2ME/877029.html 最近在做Marvell的項目,碰到個耳機熱插拔的問題,所以順便看了下相關代碼,這裡來貢獻一下給大家。 我們這裡以PXA的代碼為例,整個架構比較的簡單清晰,上層是分別是HeadsetObserver.java以及HookSwitchObserver.java,
Time of Update: 2018-12-05
本文介紹在Android如何顯示2D映像1)使用XML,代碼如下 <ImageViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:src="@drawable/android"/>(代碼比較簡單,不做解析了!!) 2)繼承View根據public void setContentView (View view) ,建立一個繼承View的類,並重寫onDraw函數。代碼如下:
Time of Update: 2018-12-05
Git是Linux Torvalds為了協助管理Linux核心開發而開發的一個開放源碼的公布式版本控制軟體。在Git版本控制系統中,每一個工作目錄都包含一個完整倉庫,它們支援離線工作。 Android是由kernel、Dalvik、Bionic、build等多個Git項目組成的,所以Android項目編寫了一個名為Repo的Python指令碼來統一管理這些項目的倉庫。 (1)安裝Git$ sudo apt-get install git-core curl (2)安裝Repo$ mkdir ~/
Time of Update: 2018-12-05
[選載]Google Android開發入門與實踐 本文介紹Android的體繫結構,Android應用程式的組成和Android應用的邏輯組成。 1.
Time of Update: 2018-12-05
這篇部落格用如下的結構來講解Service:1.先看一下Service是什麼。A Service is an application component that can perform long-running operations in the background and does not provide a user interface.Service
Time of Update: 2018-12-05
1.用xml配置 the ImageButton defined in the following layout. <ImageButton android:id="@id/rte_bold" android:layout_width="40dip" android:layout_height="40dip" android:src="@drawable/rte_bold_state"
Time of Update: 2018-12-05
1.在manifest檔案中配置<instrumentation>: <instrumentation android:name="android.test.InstrumentationTestRunner"android:targetPackage="com.broadvision.proguard" /> 作為manifest 標籤的子標籤,android:targetPackage 就是自己下面步驟建立的測試類別(AndroidTestCase的子類)的包名。2
Time of Update: 2018-12-05
EditText hyperLinkEdittext=(EditText)findViewById(R.id.hyper_link_edittext);//EditText對象int index = hyperLinkEdittext.getSelectionStart();//擷取游標所在位置String text="I want to input str";//我想添加的字串(方法1):Editable editable =
Time of Update: 2018-12-05
1.ImageView 每隔100ms更換一張顯示圖片過程中出現OOM錯誤解決方案: BitmapDrawable bitmapDrawable = (BitmapDrawable) image.getDrawable(); // 如果圖片還未回收,先強制回收該圖片 if (bitmapDrawable != null && !bitmapDrawable.getBitmap().isRecycled()){
Time of Update: 2018-12-05
從前一直以為“replace into” 在sqlite3 中的功能和大型資料庫中的語句“IF NOT EXISTS(SELECT * FROM Book WHERE ….) THEN INSERT INTO ... ELSE UPDATE SET
Time of Update: 2018-12-05
TCP 是什麼,可能有些人不知道先掃一下盲吧。TCP:Transmission Control Protocol 傳輸控制通訊協定。TCP是一種連線導向(串連導向)的、可靠的、基於位元組流的運輸層(Transport layer)通訊協定。相當於一個聊天的小應用程式,只能發送文字。Server端是一個java project 僅僅有一個類Server 代碼如下:import java.io.DataInputStream;import
Time of Update: 2018-12-05
兩個儲存格合并成一個儲存格顯示的效果如所示:如何?上面的效果:1.得到TableLayout。2.用第一步得到的TableLayout調用下面的方法: private void appendTable(TableLayout tableLayout) { int size = fileList.size(); int columnNum = 4; boolean isSpanCell = false; boolean startNewRow = true;
Time of Update: 2018-12-05
今年做公司項目的時候,自己做與File有關的那部分。需求如下: 如果是圖片就完全顯示出來,如果不是圖片就讓顯示預設的表徵圖。還有兩種不同的顯示方式,一種是tile view(瓦片樣式,就是一行可以有好幾個檔案,類似GridView,但是有的Item可以跨行),另一種就是list View.眾所周知,每一個Android APP
Time of Update: 2018-12-05
有的Android應用程式有“連網”和“斷網”兩種串連方式,“斷網”和“連網”有兩種不同的介面,”斷網“情況下調用斷網的API,“連網”情況下調用“連網”的API,如果“斷網”情況下調用連網的API,就會出現異常。應該是“連網”情況下如果斷網,應該就應該調到“斷網”的介面,並調用“斷網”情況下的API。1.能夠檢測網路,首先具有如下許可權(訪問網路的許可權和訪問網路狀態的許可權):<uses-permission
Time of Update: 2018-12-05
Android SDK更新過程中出現connection refused 或者 error問題,如:Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com