Time of Update: 2015-05-25
標籤:+ (void)verificationCode:(void(^)())blockYes blockNo:(void(^)(id time))blockNo { __block int timeout=60; //倒計時時間 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t _timer =
Time of Update: 2015-05-25
標籤:ios 第三方開源類庫 afnetworking 背景模糊 1、AFNetworkingAFNetworking 採用 NSURLConnection + NSOperation, 主要方便與服務端 API 進行資料交換, 操作簡單, 功能強大, 現在許多人都用它取代 ASIHTTPRequest2、Apple
Time of Update: 2015-05-25
標籤: application PhoneApp既沒有被Broadcast喚醒,也沒有被其他service調用,那麼是android是通過什麼方式來啟動PhoneApp,所以就發現了屬性android:persistent。
Time of Update: 2015-05-25
標籤:Android Do not keep activities選項分析Developer Options裡面有一項:Do not keep activities -> 不保留Activities.預設是不開啟的.當開啟之後,使用者離開後即銷毀每個Activity. 相關背景知識: task, back stack和低記憶體時的系統行為當使用者開啟一個task,裡面的activities都會被儲存在這個棧的back
Time of Update: 2015-05-24
標籤:/** * http工具類(利用java回掉機制)[注意:還是不能進行UI更新,依然是在子線程中進行的操作] * 當多次使用http進行網路互動時,可以將其封裝在一個類中 * 使用方法: * 先建一個介面類:如下: * public interface HttpCallbackListener{ * * void onFinish(String response) * * void onError(Exception e) * * } * 最後在調用類裡面利用
Time of Update: 2015-05-25
標籤:影像處理<h4>映像分析之RGBA模型</h4>1.色調/色相--物體傳遞的顏色ColorMatrix hueMatrix=new ColorMtrix();hueMatrix.setRotate(0,hue);hueMatrix.setRotate(1,hue);hueMatrix.setRotate(2.hue);2.飽和度--顏色的純度,從(0)到100%飽和來進行描述ColorMatrix saturationMatrix=new ColorMatrix()
Time of Update: 2015-05-24
標籤:android編程基礎錯誤1:在建立android項目的時候,自動產生一個appcompat_v7項目,而且可能會報錯,解決辦法請參照:http://bbs.itcast.cn/thread-25953-1-1.html錯誤2:資源檔夾下的png等檔案,預設開啟檔案設定,解決辦法請參照:http://zhidao.baidu.com/link?url=3Sh1v-fmz9zCU1VnJuhr-4gc_pg9peCmuaxsqI7bHkLnx-04hiCCngcvl9hC2-zvDphhDn
Time of Update: 2015-05-24
標籤:android async-http android網路框 第三方庫 http 轉載請註明出處:明桑Android 這是Android網路架構系列的最後一篇了~~, 文章主要介紹第三方庫 android-async-http的使用,之後作為Android網路架構系列的完結,對在開發中如何學習和使用第三方架構做個總結!
Time of Update: 2015-05-23
標籤: // 方法1:NSComparator NSArray *listGroupname = [self.listTeams sortedArrayUsingComparator:^(NSString *n1,NSString *n2) {
Time of Update: 2015-05-24
標籤:android viewpager illegalargumentexcep pointerindex out of android viewpager 轉載請註明:http://blog.csdn.net/aaawqqqAndroid java.lang.IllegalArgumentException:
Time of Update: 2015-05-26
標籤:setarguments bundle intent serializable parcelable
Time of Update: 2015-05-26
標籤: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />IE=edge告訴IE使用最新的引擎渲染網頁,chrome=1則可以啟用Chrome Frame。Chrome Frame:Chrome
Time of Update: 2015-05-23
標籤:package mydemo.mycom.demo2;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.text.TextUtils;import android.view.Menu;import
Time of Update: 2015-05-26
標籤:上一篇部落格中我們已經配置好了JDK和ANT,接下來我們就可以使用eclipse將我們開發好的cocos2dx項目進行打包了。首先,我們需要準備好下面的內容配置環境變數,開啟"終端",輸入"pico .bash_profile"命令點擊斷行符號後,可以看到如下內容,根據自己的目錄結構配置好環境變數配置好之後,輸入"Ctrl +
Time of Update: 2015-05-26
標籤:本文主要討論一種非常方便的抓取Android和iphone行動數據包的辦法,以及介紹wireshark最常用的技巧抓包工具介紹(1).網頁抓包工具 Chrome瀏覽器外掛程式 FireBug 外掛程式 HttpWatch Fiddler
Time of Update: 2015-05-25
標籤:android 編程 eclipse javadoc java Android-編程規範一 目錄規範系統目錄規範Requriement 要求相關文檔Design 設計Planning&Log 計劃-日誌-會議Help &
Time of Update: 2015-05-25
標籤:工具 藍芽 android ble 藍芽低功耗 現在物聯網搞的轟轟烈烈的,小米的手環等一系列產品,下面我們就來研究一下小米手環的記步功能 工具類package com.zsl.bluetoothdemo.ble;import android.bluetooth.BluetoothAdapter;import
Time of Update: 2015-05-25
標籤:android組件間通訊 eventbus android android第三方架構 通訊
Time of Update: 2015-05-25
標籤:android android自訂view 這是一個自訂view,在xml布局中用這個view嵌套要使之可以上下回彈的view,就能實現布局可以滾動上下回彈了,自訂view代碼如下:package com.loopfire.meitaotao.view.scrollView;import android.content.Context;import android.graphics.Rect;import android.
Time of Update: 2015-05-24
標籤:技術 android 單元測試 原文連結 : Against Android Unit Tests 原文作者 : Matthew Dupree 譯文出自 : 開發技術前線 www.devtf.cn 譯者 : chaossss 校對者: tiiime 狀態 : 完成 正如我在序中所說,在 Android 中難於進行測試是眾多 Android