Time of Update: 2015-11-16
標籤:<script type="text/javascript">var u = navigator.userAgent, app = navigator.appVersion;var isAndroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Linux‘) > -1; //android終端或者uc瀏覽器var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
Time of Update: 2015-11-16
標籤:首先我們要配置一些資訊清單檔 <receiver android:name="com.example.smslinser.MyReceiver" > <intent-filter android:priority="1000"> &
Time of Update: 2015-11-14
標籤:對於Android的Message機制主要涉及到三個主要的類,分別是Handler、Message、Looper;首先對每個類做一個簡單介紹;然後再介紹所謂的Android的Message機制是如何?的,最後給了一個樣本。 一、介紹三個相關的類1、 Handler主要有兩個用途:首先是可以定時處理或者分發訊息,其次是可以添加一個執行的行為在其它線程中執行,對於Handler中的方法,可以選擇你關心的操作去覆蓋它,處理具體的業務操作,常見的就是對訊息的處理可以覆蓋public
Time of Update: 2015-11-16
標籤: 先來觀察 iOS 的 User-Agent 串: iPhone 4.3.2 系統:Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us)AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7Safari/6533.18.5iPone 5.1 系統:Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1
Time of Update: 2015-11-14
標籤:email linux nagios 參考linux下用mail命令並使用外部SMTP伺服器發信設定說明 http://blog.chinaunix.net/uid-16969514-id-3363644.html1、修改寄件者email,修改後,所有使用者發送email都是用這個email帳戶。為了讓nagios能發送email,需要修改/etc/mail.rc,這個設定檔是p
Time of Update: 2015-11-14
標籤:Server.MapPath 的使用方法用法:1.Server.MapPath ("/") 應用程式根目錄所在的位置 如 C:\Inetpub\wwwroot\2.Server.MapPath ("./") 表示所在頁面的目前的目錄註:等價於Server.MapPath ("") 返回 Server.MapPath ("")所在頁面的物理檔案路徑3.Server.MapPath ("../")表示上一級目錄4.Server.MapPath
Time of Update: 2015-11-14
標籤:1.什麼是Core Animation?它是一套包含圖形繪製,投影,動畫的OC類集合。它就是一個framework。通過CoreAnimation提供的介面,你可以方便完成自己所想要的動畫。2.我眼中的Core Animation?動畫和拍電影一樣,而我們就如同導演一樣,全權負責這場小電影(:D)。電影中有3類元素,演員,劇本,拍片。動畫也一樣,Layer,CAAnimation,addAnimation。其中類比關係為CALayer : 演員CAAnimation
Time of Update: 2015-11-16
標籤: Activity:基本的頁面單元,Activity包含一個Window,window上可以繪製各種viewView:最基本的UI組件,表示螢幕上的一個矩形地區;Window:表示頂層視窗,管理介面的顯示和事件的響應;每個Activity
Time of Update: 2015-11-14
標籤:Android 平台提供了兩類動畫。 一類是Tween動畫,就是對情境裡的對象不斷的進行映像變化來產生動畫效果(旋轉、平移、放縮和漸層)。第二類就是 Frame動畫,即順序的播放事先做好的映像,與gif圖片原理類似。 下面就講一下Tweene Animations。 主要類: Animation 動畫AlphaAnimation 漸層透明度RotateAnimation 畫面旋轉ScaleAnimation
Time of Update: 2015-11-14
標籤:1.2.SVG-Path路徑下面的命令可用於路徑資料:M = movetoL = linetoH = horizontal linetoV = vertical linetoC = curvetoS = smooth curvetoQ = quadratic Belzier curveT = smooth quadratic Belzier curvetoA = elliptical ArcZ =
Time of Update: 2015-11-14
標籤:源碼: /frameworks/base/core/java/android/util/LruCache.java 檔案開篇注釋如下: A cache that holds strong references to a limited number of values. Each time a value is accessed, it is moved to the head of a queue. When a value is added to a
Time of Update: 2015-11-15
標籤: Java中常用的有關線程的操作有,判斷線程是否啟動、線程強制執行、線程休眠、線程中斷、線程讓步、線程同步等。下面就一一舉例。 首先,我們建立一個MyThread類實現Runnable介面。基於此介面進行線程的相關操作。class MyThread implements Runnable {public void run() {for (int i = 0; i <
Time of Update: 2015-11-16
標籤:
Time of Update: 2015-11-16
標籤:iOS開發之多線程——GCD的介紹一、簡單介紹 1、GCD ( Grand Central Dispatch) 可以翻譯為“中樞調度器”。純C語言,並且提供了非常強大的函數。 2、GCD 有什麼優勢; GCD是蘋果公司為多核的並行運算提出的解決方案
Time of Update: 2015-11-16
標籤:BabyBluetooth 是一個最簡單易用的藍芽庫,基於CoreBluetooth的封裝,併兼容ios和mac osx。特色:基於原生CoreBluetooth架構封裝的輕量級的開源庫,可以幫你更簡單地使用CoreBluetooth
Time of Update: 2015-11-16
標籤:使用AddressBook管理連絡人iPhone手機通常都是內建的Contacts應用,包括所有連絡人的性(last name)、名(first
Time of Update: 2015-11-15
標籤:unit Main;interfaceuses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TMainForm = class(TForm) SendBtn: TButton; PostBtn: TButton; procedure SendBtnClick(Sender: TObject);
Time of Update: 2015-11-16
標籤:private String getRealPath( Uri fileUrl ) { String fileName = null; Uri filePathUri = fileUrl; if( fileUrl != null ) { if( fileUrl.getScheme( ).toString( ).compareTo( "content" ) == 0 ) // content://開頭的uri
Time of Update: 2015-11-16
標籤:我們經常在開發app的時候在AndroidManifest.xml發現這個警告warining:"Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for
Time of Update: 2015-11-14
標籤:android 感應器 方向感應器 指南針 Android基礎入門教程——10.11 感應器專題(2)——方向感應器標籤(空格分隔): Android基礎入門教程本節引言: 在上一節中我們中我們對感應器的一些基本概念進行了學習,以及學習了使用感應器的套路, 本節給大家帶來的感應器是方向感應器的用法,好的,開始本節內容~1.三維座標系的概念: