Time of Update: 2016-04-26
標籤:android 圖片 模擬器 照片 相機 最近在調用android系統拍照功能時,將拍出的照片在顯示到ImageView上時,在模擬器上是正常的,可到了真機,死活顯示不出來,後來經過多方查證終於調試好了。1、要重載onConfigurationChanged事件,阻止調用相機後原本的Activity重新OnCreate,如
Time of Update: 2016-04-26
標籤:概述 Android中View架構的工作機制中,主要有三個過程: 1、View樹的測量(measure) Android
Time of Update: 2016-04-26
標籤:nagios 連絡人 郵箱錯誤 Whoops!Error: Could not read host and service status information!The most common cause of this error message (especially for new users), is the fact that Nagios is not actually
Time of Update: 2016-04-26
標籤:android底層開發需要啥工具:(1)JDK6或以上版本;(2)Eclipse3.4或以上版本;(3)ADT(用於開發Android應用程式);(4)CDT(用於開發Android NDK程式);(5)Android SDK;(6)Android NDK;(7)交叉編譯環境;(8)Linux核心原始碼;(9)Android原始碼;(10)用於調試開發板的串口工具:minicom。 Android開發環境搭建一、開發環境搭建 1
Time of Update: 2016-04-27
標籤: MAC Xcode內建的svn和Versions以及一些其它工具都預設ignore".so"檔案。不能提交.so檔案, 這個與SVN的配置有關, 其實與xcode倒沒有關係。方法一: 1. 開啟終端, 在命令列中輸入: vi ~/.subversion/config 來開啟設定檔. 2. 然後, 在[miscellany]項找到這個串: #
Time of Update: 2016-04-26
標籤:目前PC端對input 的date類型支援不好,我試下來的結果是只有chrome支援。firefox、IE11
Time of Update: 2016-04-26
標籤:關於此錯誤的出現的原因,請參照這篇微博http://www.05935.com/83/1036608/ 使用Android Studio 2.0 引入老項目時,在開啟Instant Run時候會出現這樣的問題:Error:Access to the dex task is now impossible, starting with 1.4.0 1.4.0 introduces a new Transform API allowing manipulation of the .class
Time of Update: 2016-04-27
標籤:l 配置Android原始碼下載環境步驟建立一個用於存放下載指令檔(repo)的目錄#mkdir ~/bin#PATH=~/bin/repo下載repo指令檔#curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >~bin/repo#chmod a+x~/bin/repo建立用於存放Android原始碼目錄#mkdir android_source#cd android_source初始化#repo
Time of Update: 2016-04-27
標籤:從主線程發送訊息到子線程(準確地說應該是非UI線程) package com.zhuozhuo;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Looper;import android.os.Message;import android.util.Log;impor
Time of Update: 2016-04-26
標籤:搭建Android底層開發環境的步驟l 安裝JDK:1.下載JDK,解壓,開啟profile設定PATH環境變數2.#gedit /etc/profileExport PATH=.:/developer/jdk6/bin:$PATH3.#source /etc/profile# . /etc/profile註:可通過echo $PATH查看環境變數的值l 搭建Android應用程式開發環境安裝Android
Time of Update: 2016-04-26
標籤:啟動介面的意義是為了讓幕後處理耗時的複雜工作,當工作處理完成後,即可進入主介面。相比讓使用者等待布局載入完成,使用一張圖片作為啟動背景,會帶來更好的體驗。首先,需要建立一個簡單的布局:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2016-04-26
標籤:三星手機 download android 手機小幫手 三星驅動
Time of Update: 2016-04-26
標籤:該篇說明現在我們正式進入功能及代碼的分析主要進行重要功能的講解吧。 拷貝單詞書功能在第一個介面中也就是在歡迎介面WelcomeActivity中 項目整體構架是MVC模式的UI中主要只進行調用顯示資料真正的資料處理邏輯在用戶端後台。 那麼先介紹UI及流程,再描述背景拷貝單詞書功能。 效果 執行流程圖 流程詳細說明1>
Time of Update: 2016-04-26
標籤: 在APP開發中,大量的圖片或訊息佔用系統記憶體,造成一堆垃圾資訊,所以開發清除緩衝功能就顯得必不可少了。 程式碼片段1:擷取檔案的大小- (long long) fileSizeAtPath:(NSString*) filePath{ NSFileManager* manager = [NSFileManager defaultManager]; if ([manager fileExistsAtPath:filePath]){ return
Time of Update: 2016-04-26
標籤:equals()是Object類提供的一個方法,眾所周知,每一個java類都繼承自Object,所以說每一個對象都有一個equals()方法,我們在用這個方法時卻一般重寫這個方法Object類中equals()方法源碼 public boolean equals(Object obj) { return (this == obj);
Time of Update: 2016-04-25
標籤:先上一個工具類的代碼:package com.yonyou.util;import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;/** * 判斷當前網路狀態 * @author xxx * */public class NetWorkUtil {static NetWorkUtil netWorkUtil;private NetWorkUtil()
Time of Update: 2016-04-26
標籤:While you have multiple streams flowing into your scan operator, you‘ll need to map each stream to the specific values you need to update your state the way that you want. This lesson covers using the map operator to determine what the click and
Time of Update: 2016-04-26
標籤:UIWebView 在實際應用中負載檔案的時候,有兩種情況,1. 實行線上預覽 ,2. 下載到本地,再查看 如果是第一種情況: 1 NSURL *url = [NSURL URLWithString:_url];2 NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];3 [self.webView loadRequest:request];直接載入路徑就可以了
Time of Update: 2016-04-25
標籤:怎麼樣可以一次性把導航控制器中的返回鍵全都自訂。思路:我們可以在push的時候來設定這個自訂按鈕,push有一個方法- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{}在這個方法中viewController是push的對象但是要判斷這個viewController是不是根控制器 - (void)pushViewController:(UIViewController
Time of Update: 2016-04-25
標籤:把下面代碼添加到該添加的地方就OK了 , 2333Html 1 <html> 2 <head></head> 3 <body> 4 <div class="pwd-box" id="sixpwd"> 5 <input type="tel" maxlength="6" class="pwd-input" id="pwd-input" /> 6 <div