Time of Update: 2015-04-15
標籤:服務類,一定要在資訊清單檔中註冊public class lightService extends Service { private boolean ifrun = false; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void
Time of Update: 2015-04-15
標籤:Demo源碼位置:http://git.oschina.net/zj2012zy/Android-Demo/tree/master/AndroidDemo/headset一般需要使用者資訊的好多的也需要設定帳戶圖片,通常設定帳戶圖片的操縱要麼從手機選擇一張圖片,要麼直接通過手機拍照進行設定。如下:另外:製作手機的動態截屏,可以使用應用寶的動態截屏功能,非常的方便。布局檔案很簡單:就是兩個按鈕加一個imageview用來顯示設定好的頭像,就不說了。核心代碼為如下四個函數:1.選擇一張圖片1
Time of Update: 2015-04-15
標籤::http://search.cpan.org/CPAN/authors/id/Z/ZI/ZIGOROU/Nagios-Plugins-Memcached-0.02.tar.gzhttp://cpan.uwinnipeg.ca/cpan/authors/id/Z/ZI/ZIGOROU/Nagios-Plugins-Memcached-0.02.tar.gz這個指令碼是用perl編的,所以你要先確保自己的機器裡面是否有perl環境,不過一般都會預設安裝[[email protect
Time of Update: 2015-04-15
標籤://// FirstViewController.h// 控制器資料傳遞//// Created by wangtouwang on 15/4/15.// Copyright (c) 2015年 wangtouwang. All rights reserved.//#import <UIKit/UIKit.h>@interface FirstViewController : UIViewController@end//// FirstViewController.m/
Time of Update: 2015-04-15
標籤:nagios在啟動時報錯# service nagios restartRunning configuration check…done.Stopping nagios: done.Starting nagios:This account is currently not available.done.這個報錯看起來有點礙眼,但實際上nagios是啟動正常的。如果要去掉這個資訊提示需要把/etc/passwd裡的/sbin/nologin修改成/bin/bash (
Time of Update: 2015-04-15
標籤:IOS 系統開關控制項簡單使用總結:初始化:- (instancetype)initWithFrame:(CGRect)frame; 這個frame是沒有意義的,系統的開關控制項大小是確定的。設定開關開啟狀態時的顏色@property(nonatomic, retain) UIColor *onTintColor;設定開關風格顏色@property(nonatomic, retain) UIColor *tintColor;設定開關按鈕顏色@property(nonatomic,
Time of Update: 2015-04-15
標籤:android 應用 手機 manifest 在不少應用中都會發生出現螢幕方向改變,但是在改變的時候又會發生什麼事情呢?我們寫一個app測試一下代碼在這裡:http://download.csdn.net/detail/edwardwayne/8594291我們在mainActivity中寫了android生命週期中幾個重要的階段onCreate,onRe
Time of Update: 2015-04-15
標籤:原因:安卓內建的控制項沒有鏡像功能,沒關係我們可以自己實現一個。其實很簡單,重寫系統控制項的draw方法,不是ondraw方法。具體可以看源碼解決方案:這是我寫的Seekbar的鏡像,公司需求package com.finals.oilrank.util.view;import android.content.Context;import android.graphics.Canvas;import android.util.AttributeSet;import
Time of Update: 2015-04-15
標籤:android 渲染器 shader android裡邊的渲染器的使用主要是shader的子類,shader繼承自object,他的子類有: 1、BitMapShader:BitMapShader
Time of Update: 2015-04-15
標籤:android開發 手機 電訊廠商 public class PhoneSIMCInfo {/**手機管理工具類*/private TelephonyManager telephonyManager;/**國際移動使用者識別碼*/private String mImsi;public PhoneSIMCInfo(Context context) {telephonyManager =
Time of Update: 2015-04-15
標籤:Duang!
Time of Update: 2015-04-15
標籤:zip error invalid command argu recovery-resource.da android源碼編譯出錯 前段時間出版本編譯的時候,偶然間發現了這個問題:zip error: Invalid command arguments (cannot repeat names in zip file)make: ***
Time of Update: 2015-04-15
標籤:alarmmanag 定時器 使用者介面 android 開發 Focus on technology, enjoy life!—— QQ:804212028
Time of Update: 2015-04-15
標籤:android 資料庫 總結第一步:自己編寫一個類 繼承 SQLiteOpenHelper,如下package com.example.wxj2048;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import
Time of Update: 2015-04-15
標籤:1、使用equals( )方法比較兩個字串是否相等。它具有如下的一般形式:boolean equals(Object str)這裡str是一個用來與調用字串(String)對象做比較的字串(String)對象。如果兩個字串具有相同的字元和長度,它返回true,否則返回false。這種比較是區分大小寫。2、為了執行忽略大小寫比較,可以調用equalsIgnoreCase( )方法。當比較兩個字串時,它會認為A-Z和a-z是一樣的。其一般形式如下:boolean
Time of Update: 2015-04-15
標籤:camera cameraclient icamera spcamera status_t Camera::connectLegacy(int cameraId, int halVersion, const String16& clientPackageName, int
Time of Update: 2015-04-15
標籤:觸屏 事件 touch 事件傳遞 Android觸屏事件傳遞一:前言
Time of Update: 2015-04-15
標籤:ios 庫 github 下拉-重新整理 原創Blog,轉載請註明出處 blog.csdn.net/hello_hwc 我的Github https://github.com/wenchenhuang/WCPullRefreshControl前言: 寫IOS代碼有段時間了,是時候寫幾個Github的庫了,即鍛煉了自己,又能夠協助需要的人。
Time of Update: 2015-04-15
標籤:android asynctask 線程 源碼 線程池 轉載請註明出處:http://blog.csdn.net/itachi85/article/details/45055365 請看這篇文章之前看一下本作的前篇http://blog.csdn.net/itachi85/articl
Time of Update: 2015-04-15
標籤:android 布局 控制項 android開發 AutoCompleteTextView是一個可編輯的文本,自動顯示與使用者輸入字串部分匹配和位置匹配的字串,從中進行選擇。介紹幾個方法:1.setAdapter()自動完成文字框設定適配器,顯示能匹配字串。2.setThreshold()輸入多少個字元後開始匹配。3.setThreshold()參數為字串