Time of Update: 2015-12-29
jQuery Mobile_公司簡介,jquerymobile<!doctype html><html><head><meta charset="utf-8"><meta name="viewport"
Time of Update: 2015-12-29
Android,android官網背景 &nb
Time of Update: 2015-12-29
Android開啟多進程1.
Time of Update: 2015-12-29
Service啟動模式Service簡介Service表示服務,是Android系統的核心組件之一。Service的本質是一個繼承了android.app.Service的java類;每一個Service都應該在AndroidMainfest.xml檔案中進行註冊;Service由Android系統進行維護。Service沒有匹配的使用者介面,通常用於幕後處理耗時操作。不允許在主線程中執行耗時操作。Service是運行在主線程中的;儘管Service被定位為“用於處理耗時操作&rdq
Time of Update: 2015-12-28
Android黑科技,讀取使用者簡訊+修改系統簡訊資料庫, 安卓系統比起ios系統最大的缺點,相信大家都知道,就是系統安全問題。這篇部落格就秀一波“黑科技”。 讀取使用者簡訊 Android應用能讀取使用者手機上的簡訊,相信已經不是什麼新鮮事,比如我們收到的簡訊驗證碼,一些app馬上就能自動擷取並填上驗證碼,省去我們手動填寫驗證碼。原理就是通過Android的ContentProvider組件間接訪問系統的簡訊資料庫,擷取所有簡訊內容。下
Time of Update: 2015-12-28
ImageSwitcher的簡單使用, 測試代碼:activity_main.xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/MyLayout" android:layout_width="fill_parent"
Time of Update: 2015-12-28
android不太常用的控制項,AutoCompleteTextView:是一種與EditText類似的視圖(實際上他是EditText的子類),只不過它還在使用者輸入時自動顯示完成建議的列表 <AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content"
Time of Update: 2015-12-24
回調機制的實現。,回調機制實現.簡單回調機制的建立主要分為下面幾步:1.寫一個回調類,寫出需要的構造方法2.定義一個介面,裡面寫一個抽象方法,方法體(String data)為所需要回調的資料3.定義一個設定介面的方法,裡面得到介面對象4.定義一個發送資料的方法,當調用這方法時,資料自動發送及接受如下:package com.lixu.huidiao;public class SendData { private OnSendDataListener
Time of Update: 2015-12-24
unresolved inclusion in the java header in JNI,inclusionjni eclipse的ndk開發環境建差不多後開啟jni的samples裡的hello-jni項目。添加native和運行都沒有問題,但是開啟hello-jni.c看到一片紅: <buildCommand>
Time of Update: 2015-12-24
單擊事件的處理方式及註冊表單的建立之(一)按鈕單擊事件的實現,單擊表單開發步驟:聲明互動類組件對象 執行個體化互動類組件對象findViewById(ID資源名稱) 自訂一個事件監聽類完成對該介面所有互動組件的動作監聽,該類必須實現一個介面View.OnclickListener,進行事件組件監聽 按鈕與自訂監聽器綁定代碼: 1 public class LoginActivity extends AppCompatActivity { 2 3 private Button
Time of Update: 2015-12-24
Android學習筆記(24):進度條組件ProgressBar及其子類ProgressBar作為進度條組件使用,它還派生了SeekBar(拖動條)和RatingBar(星級評等條)。ProgressBar支援的XML屬性:Attribute NameRelated
Time of Update: 2015-12-23
[Android]使用button切換TextView可見和不可見,androidtextview <Button android:id="@+id/btnTest" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button" /> <TextView
Time of Update: 2015-12-23
Android測試架構1(非原創),android架構1.繼承AndroidTestCase :public class JunitTest3 extends AndroidTestCase {}2.在AndroidManifest.xml資訊清單檔中添加如下代碼:<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.showdata" android:
Time of Update: 2015-12-23
Android之JSON解析,androidjson 做個Android網路編程的同學一定對於JSON解析一點都不陌生,因為現在我們通過手機向伺服器請求資源,伺服器給我們返回的資料資源一般都是以JSON格式返回,當然還有一些通過XML格式返回,相對JSON格式,XML格式的資料在處理時相對比較繁瑣,並且Android為我們提供了兩個解析JSON對象的類:JSONObject與JSONArray這兩個對象可以很好的滿足我們的需求,JSONArray對象可以以數組的形式將資料返回到手機,JSONO
Time of Update: 2015-12-23
安卓狀態列通知Status Bar Notification,安卓notification安卓系統通知使用者三種方式:1.Toast Notification2.Dialog Notification3.Status Bar Notification Status Bar
Time of Update: 2015-12-23
小記:使用SharedPreferences儲存來設定程式第一次進入歡迎介面,以後不會再進入歡迎介面。, 1 SharedPreferences mSharedPreferences = this.getSharedPreferences(NAME, this.MODE_PRIVATE); 2 boolean first_run = mSharedPreferences.getBoolean(APP_FIRST_RUN, true); 3 4 if
Time of Update: 2015-12-23
《Android源碼設計模式解析與實戰》讀書筆記(九)第九章、責任鏈模式1.定義責任鏈模式是行為型設計模式之一,它使多個對象都有機會處理請求,從而避免了請求的寄件者和接受者之間的耦合關係。將這些對象連成一條鏈,並沿著這條鏈傳遞該請求,直到有對象處理它為止。2.使用情境1.多個對象可以處理同一請求,但具體由哪個對象處理則在運行時動態決定。2.在請求處理者不明確的情況下向多個對象中的一個提交請求。3.需要動態指定一組對象處理請求。3.簡單實現這個例子我覺得很貼切。我們在公司有各種原因需要報銷費用,首
Time of Update: 2015-12-22
Android系統編譯環境初始化時Product產品的import-nodes過程從執行make -f
Time of Update: 2015-12-22
android EditText 焦點,androidedittext在Android項目中,一進入一個頁面, EditText預設就會自動擷取焦點。那麼如何取消這個預設行為呢?在網上找了好久,有點 監聽軟鍵盤事件,有點 調用 clearFouse()方法,但是測試了都沒有! xml中也找不到相應的屬性可以關閉這個預設行為解決之道:在EditText的父級控制項中找一個,設定成 android:focusable="true"
Time of Update: 2015-12-22
Android開發_關於中英文切換,android開發中英文 開發APP過程中可能要有中文模式和英文模式,切換後控制項要隨著變更,以下代碼可以很好的實現:public static int getResourcesId(Context context, String resName, String resTpye) { String language = Locale.getDefault().getLanguage();