Time of Update: 2015-10-19
Android--PullToRefreshListView 的簡單使用,androidpulltorefresh 原文: http://blog.csdn.net/lmj623565791/article/details/38238749;pull-to-refresh對ListView進行了封裝,叫做:PullToRefreshListView,用法和listview沒什麼區別,下面看demo.<RelativeLayout
Time of Update: 2015-10-19
Handler與Looper,MessageQueue的關係,loopermessagequeue 總結一下Handler與Looper,MessageQueue的關係,並實現自訂與子線程相關的Handler。一、Handler與Looper,MessageQueue的關係 它們之間的關係其實就是下面的三條說明:(1)Looper:相當於訊息的載體 •
Time of Update: 2015-10-17
ObjectAnimator屬性動畫應用demo,objectanimatordemo感謝慕課網--eclipse_xu布局檔案:activity_main.xml 1 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3
Time of Update: 2015-10-19
在GridView中添加產品,GridView添加產品是定義一個 GridView 再在上面添加 產品先定義產品的適配器 1 package org.xml.demo; 2 3 import ogg.huanxin.huadong.R; 4 import android.content.Context; 5 import android.view.LayoutInflater; 6 import android.view.View; 7 import
Time of Update: 2015-10-19
使用AsyncHttpClient碰到的問題及解決方案,asynchttpclient碰到
Time of Update: 2015-10-18
Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info),subclipseintance本文轉載自:http://blog.csdn.net/myfxx/article/details/21096949 今天在用eclipse啟動項目的時候發現了一個問題,就是每次啟動項目的時候,eclipse都會彈出一個Subclipse Usage的彈框,很是讓人覺得不爽,
Time of Update: 2015-10-17
Service解析,webservice解析xmlService解析: 運行service有如下兩種方式: StartService() 訪問者退出,service仍然運行; BindService() 訪問者與service綁定,訪問者退出,service就會終止。 首次調用startService()啟動一個service onCreate()-> onStartCommand()->
Time of Update: 2015-10-16
App Webview與內嵌web互動實現,appwebview內嵌web 需求: 公司一App項目中內嵌了通過web實現的功能,隨著功能的不斷擴充,內嵌的web介面需要調用App的相關資訊或者通過APP去實現功能,所以才研究了一下APP的WebView如何與內嵌的網頁互動。
Time of Update: 2015-10-16
給APP增加RSA簽名,APP增加RSA簽名 RSA簽名,Google主要用於APP的來源控制與結算。所謂的結算,也是就是控制了APP只有使用現在機子上登入的Google賬戶從Google市場曾經下載過該APP的才能夠使用,這樣也就達到了app銷售的目的。 增加RSA簽名主要分為以下幾步驟 1).添加License Verification Library(LVL)庫 2).發布一個測試版(BETA 版)到Google
Time of Update: 2015-10-15
這麼多開源架構,該用哪個好?,這麼多開源架構想必這樣的問題,大家都有疑惑過。我想大部分的疑惑無非以下幾點:這個架構穩定嗎?要是有bug怎麼辦?這個架構能滿足我的所有需求嗎?如果用到一半發現不適用該怎麼辦?這個架構耦合度高嗎?是否能按照需求再去定製擴充? 先不看以上幾點,我們先來說什麼樣的架構一定一定不要採納:彙總型架構一定要放棄(比如Afinal,xUtils),why?越是大而全,越容易牽一髮而動全身,而且在架構世界裡沒有1+1>2這一說。相反的可讀性差,耦合高,難擴充。是Af
Time of Update: 2015-10-16
[Android-011][多線程下載] 多線程下載原理:伺服器CPU分配給每條線程的時間片相同,伺服器頻寬平均分配給每條線程,所以用戶端開啟的線程越多,就能搶佔到更多的伺服器資源確定每條線程下載多少資料發送http請求至 String path = http://192.168.1.102:8080/editplus.exe; URL url = new URL(path); HttpURLConnection
Time of Update: 2015-10-16
[Android-010][HttpClient使用] HttpClient發送get請求建立一個用戶端對象 HttpClient client = new DefaultHttpClient();建立一個get請求對象 HttpGet hg = new HttpGet(path);發送get請求,建立串連,返迴響應頭對象 HttpResponse hr = hc.execute(hg);擷取狀態行對象,擷取狀態代碼,如果為200則說明請求成功
Time of Update: 2015-10-16
從網上載入圖片然後展示在螢幕上,網上載入圖片展示直接上代碼 1 package org.lxh.server; 2 3 import java.io.ByteArrayOutputStream; 4 import java.io.InputStream; 5 import java.net.HttpURLConnection; 6 import java.net.URL; 7 8 import org.xml.demo.server.R; 9 10 import
Time of Update: 2015-10-16
android事件分發介紹,android事件分發 Android事件分發事件分發3個步驟dispatchTouchEvent(event)派發 onInterceptTouchEvent(event)攔截 onTouchEvent(event) 處理 requestDisallowInterceptTouchEvent()設定父控制項是否攔截事件MotionEvent由 Activity擷取到事件,傳遞到View,當前的View,派發-> 攔截 ->
Time of Update: 2015-10-15
picasso總結,picasso 1 public class UMDocApplication extends Application { 2 private Picasso picasso = null; 3 /**擷取Picasso對象**/ 4 public Picasso getPicasso(){ 5 if(picasso == null) 6 cancelPicassoCache(); 7
Time of Update: 2015-10-15
[Android-009][提交資料] 提交資料GET方式提交資料get方式提交的資料是直接拼接在url的末尾 final String path = http://192.168.1.104/Web/servlet/CheckLogin?name= + name + &pass= + pass;發送get請求,代碼和之前一樣 URL url = new URL(path); HttpURLConnection conn =
Time of Update: 2015-10-16
Android系統移植與調試之-------)如何修改Android手機顯示的4G訊號強度的格子數在修改顯示的訊號強度之前,先瞭解一下什麼是dB,什麼是dBm?1.dB dB是一個表徵相對值的值,純粹的比值,只表示兩個量的相對大小關係,沒有單位,當考慮甲的功率相比於乙功率大或小多少個dB時,按下面的計算公式:10log(甲功率/乙功率),如果採用兩者的電壓比計算,要用20log(甲電壓/乙電壓)。) [例] 甲功率比乙功率大一倍,那麼10lg(甲功率/乙功率)=10lg2=3dB。也就是說,
Time of Update: 2015-10-15
安卓軟體開發需要學習那些程式設計語言 一、程式設計語言的學習 安卓應用軟體開發中有很多的程式設計語言可以使用,所以應該重點學習以下幾種程式設計語言。 ① C/C++語言。
Time of Update: 2015-10-15
Android——常用程式碼片段積累(一) 1,Toast // 登入成功之後跳轉到homeToast.makeText(getApplicationContext(), 登陸成功!,Toast.LENGTH_SHORT).show(); 2,簡單提示框 AlertDialog.Builder builder = new Builder(home.this);
Time of Update: 2015-10-15
[Android-007][網狀圖片查看器] 網狀圖片查看器確定圖片的網址 發送http請求 URL url = new URL(address); //擷取連線物件,並沒有建立串連 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); //設定串連和讀取逾時 conn.setConnectTimeout(5000);