Time of Update: 2015-06-04
標籤:gradle git Error: Gradle: Execution failed for task ‘:mytask’ > A problem occurred starting process ‘command ‘jni/ndk-build.cmd” 這是win7開啟android程式出現的問題,解決方案:開啟build.gradle,找到“commandLine”這行,把commandLine
Time of Update: 2015-06-04
標籤:It was not possible to complete an automatic installation. This might be due to a problem with your network, proxy servers or an unsolvable installation conflict. At this point, you can continue the installation by manually downloading and
Time of Update: 2015-06-04
標籤:androidViewFlipper的簡介ViewFlipper繼承於ViewAnimator,它和AdapterViewFlipper有著許多的相似的地方。程式碼範例package peng.liu.test;import android.app.Activity;import android.graphics.Color;import android.graphics.drawable.Drawable;import android.os.Bundle;import
Time of Update: 2015-06-04
標籤:android gson json Json是一種類似於XML的通用資料交換格式,具有比XML更高的傳輸效率。從結構上看,所有的資料(data)最終都可以分解成三種類型: 第一種類型是標量(scalar),也就是一個單獨的字串(string)或數字(numbers),比如"北京"這個單獨的詞。 第二種類型是序列(sequence),
Time of Update: 2015-06-04
標籤:1.第一種可以調用系統內部的簡訊程式. 之前我曾經出現過一個bug就是報錯: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SENDTO dat=Tel:xxx
Time of Update: 2015-06-04
標籤: 1 #/******************************************************************************* 2 # * OK335xS-Android pack-ubi-256M.sh hacking 3 # * 聲明: 4 # * 1. 本文解析僅僅是為了知道pack-ubi-256M.sh自動產生ubi檔案系統的原理 5 # * 2.
Time of Update: 2015-06-04
標籤:- (double)calculateStart:(CLLocationCoordinate2D)start end:(CLLocationCoordinate2D)end { double meter = 0; double startLongitude = start.longitude; double startLatitude = start.latitude; double endLongitude = end.longitude;
Time of Update: 2015-06-04
標籤: 1 public void ProcessRequest(HttpContext context) 2 { 3 context.Response.ContentType = "text/html"; 4 HttpBrowserCapabilities bc = context.Request.Browser; 5 //context.Response.Write("<p>Browser
Time of Update: 2015-06-04
標籤:CALayer隱式動畫在前面幾講中已經提到,每一個UIView內部都預設關聯著一個CALayer,我們可用稱這個Layer為Root Layer(根層)。所有的非Root Layer,也就是手動建立的CALayer對象,都存在著隱式動畫。 * 當對非Root Layer的部分屬性進行相應的修改時,預設會自動產生一些動畫效果,這些屬性稱為Animatable Properties(可動畫屬性)。
Time of Update: 2015-06-04
標籤:Copy from http://stackoverflow.com/questions/14105345/iis-app-pools-worker-processes-app-domains I try to say them with other words.In a server you can have many asp.net sites that runs together. Each one site is an app
Time of Update: 2015-06-03
標籤:檔案壓縮與解壓 一、技術方案1.第三方架構:SSZipArchive2.依賴的動態庫:libz.dylib二、壓縮11.第一個方法/** zipFile :產生的zip檔案的最終路徑 directory : 需要進行的壓縮的檔案夾路徑 */[SSZipArchive createZipFileAtPath:zipFile withContentsOfDirectory:directory];2.第一個方法/** zipFile
Time of Update: 2015-06-04
標籤:在之前樓主在學習了Android的啟動流程後,繼續學了下去,然後看了上面這位博主的分享,便對修改主屏有明確思路了開始嘗試修改開機後首次進入的介面,首先樓主先寫了一個簡單的apk,主要最初預設的程式中在AndroidMain裡fiter裡加了句 <category android:name="android.intent.category.HOME" />主要在android啟動後選擇主畫面可以找到這個apk。顯示hello
Time of Update: 2015-06-04
標籤:android imageswitcher ImageSwitcher 組件的主要功能是完成圖片的切換顯示,例如使用者在進行圖片瀏覽時,可以通過單擊按鈕逐張切換顯示的圖片,在進行切換時還可以加入一些動畫效果。如果想進行實現圖片的切換功能,則定義的Activity類還必須實現ViewSwitcher.ViewFactory介面,以指定切換視圖的操作工廠,此介面定義如下:android.widget介面
Time of Update: 2015-06-04
標籤:android背景因為項目要換android studio,就用了一把,結果自動給我下載了最新的build-tools 23.0.0_rc1,然後當我再次用eclipse開啟項目時就死活編譯不了了,git reset了n次,刪了重導也不行。最終發現報錯如下:Description Resource Path Location Type Error executing aapt. Please check aapt is present at解決原來是找不到aapt這個工具,原來是23.0.
Time of Update: 2015-06-04
標籤:android activity 判斷當前Activity是最後一個Activity:在Activity的方法中, 有一個方法isTaskRoot()方法, 這個方法可以判斷當前Activity是否是最後一個Activity, 如果是, 使用者再按一次返回鍵就退出應用, 否則回到上一個仍然活動的Activity;代碼如下:@Overridepublic void onBackPressed() {if
Time of Update: 2015-06-04
標籤:Android NDK 是Android SDK的相關工具集,用於擴充Android SDK的功能。AndroidNDK不是一個單獨的工具,它是一個包含API、交叉編譯器、連結程式、調試器、構建工具、文檔和應用程式範例的綜合工具集。 Android
Time of Update: 2015-06-04
標籤: 今天下午,在自己的項目中添加了對RecyclerView的支援,但是一直報出“Caused by: java.lang.NoClassDefFoundError:
Time of Update: 2015-06-04
標籤:以下是Android的各個版本與API的對應關係表徵圖,便於查閱,會持續更新
Time of Update: 2015-06-04
標籤:ios ios開發 github 在平常開發中,af是個很好用的東西,很喜歡,但是網上的af找了好多都不太全面,不實用。所以我今天做了一個demo。有上傳下載的。比較實用。希望大家能夠用到。去我github下載demo github連結 。
Time of Update: 2015-06-03
標籤:android來源SlidingMenu是github上比較火開源庫,非常強大,不但可是簡單的設定實現兩側滑動菜單,還可以設定菜單的陰影、漸層色、划動模式等。:https://github.com/jfeinstein10/SlidingMenu如何使用要想能夠實現SlidingMenu的效果,首先必須要將它作為libary匯入到你的工程。注意:slidingMenu_library類庫本身內建了android-support-v4.jar檔案,而我們自己的工程一般也帶有這個檔案,如果兩個