Time of Update: 2015-01-08
標籤:環境配置在網上搜尋的一大堆。這裡簡單發幾個串連。http://jingyan.baidu.com/article/bea41d437a41b6b4c51be6c1.htmlhttp://jingyan.baidu.com/article/9c69d48f56835e13c9024e95.html百度真是強大啊! 下邊碰到了問題。國內無法串連google網上的好多方法試了。都沒成功。最終得到一個解決方案:啟動 Android SDK Manager
Time of Update: 2015-01-08
標籤:參考:1.code.google.com - 18樓的回答(Mac) / Windows使用者參考29樓的回答2.How To Set $JAVA_HOME Environment Variable On Mac OS X3.http://hsj69106.blog.51cto.com/1017401/595598 環境:Mac OS X Yosemitejdk1.7.0_71Eclipse Luna (4.4.1) 報錯資訊:Errors occurred
Time of Update: 2015-01-08
標籤:1. 當沒有移動操作可使用時. 如果類的設計者把一個類的移動拷貝和移動運算子多載都聲明為 delete, 那麼你使用的所謂 "移動 建構函式函數/運算子" 實際上還是拷貝運算子.2. 當移動沒有拷貝塊時有些情況下, 移動並不比拷貝快, 比如 面對 small string optimization (SSO) 的情況下("small" 意味著容量小於 15個位元組) 這樣的 small string 會儲存在 string 對象的緩衝區中, 而不需要給它們在堆中分配空間. 在這種情況下,
Time of Update: 2015-01-08
標籤:如果說我比別人看得更遠些,那是因為我站在了巨人的肩上。github地址:https://github.com/loopj/android-async-httpApi文檔地址:http://loopj.com/android-async-http/doc/http通訊作為開發android最基本的模組,相信大家開發網路應用時都會需要用到。在初學android的時候自己通過Apache的HttpClient類庫實現了一個簡單的http通訊模組,安全執行緒,每次都要建立一個線程,通過Hander
Time of Update: 2015-01-08
標籤://重寫ScrollViewpublic class NotifyingScrollView extends ScrollView { /** * @author Cyril Mottier */ public interface OnScrollChangedListener { void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt); }
Time of Update: 2015-01-08
標籤:iOS 簡易底層我自己在使用的Basement 簡易可自訂度底層 1、 沒有的東西: 網路請求 資料存放區 - ASI二次開發 AF MK 各有所好、 所以不寫。 CoreData 使用 各有所好, 推薦Magic FMDB - 資料庫相關操作 - 各有所好不寫 &
Time of Update: 2015-01-08
標籤:1,什麼是notification,什麼時候用delegate 什麼時候用Notification? Notification 是通知中樞 .
Time of Update: 2015-01-08
標籤:因為Android中很多地方代碼是用C++編寫,為了能夠保證C++中指標能夠被正確的釋放,於是Android引入了其實在C++中已經有的智能指標技術;智能指標技術的實質就是:記錄引用某一個對象的次數,一旦檢測到次數為0,這時就自定將此對象所佔記憶體釋放。簡單的的智能指標技術因為不能解決對象循環參考的問題:a引用b;b引用a,這樣的情況下使用簡單的智能指標技術無法解決,故引入強指標和弱指標;其實完全可以把強弱指標看做c語言中的一個指向對象的地址(為了便於理解),不過區別在於強指標可以操作對象
Time of Update: 2015-01-07
標籤:最近測試發現,html5遊戲在三星note手機上初次載入都會模糊,重新整理之後就不模糊了,不知道是什麼原因,本人對底層的東西也不熟,後來問了個同事,找到個解決方案,現記錄一下。 <meta name="viewport"
Time of Update: 2015-01-07
標籤:package org.mo.common.util.sharepreferences;import android.content.Context;import android.content.SharedPreferences;public class MySharePreferences {private Context mContext;private static MyShareP
Time of Update: 2015-01-07
標籤:Android進程一1、複習結構Engine基類-abstract operation() 介面InterfaceTire子類-operation()2、Processclass、module、app在記憶體的某一地區執行,每塊地區之間有一個隔閡,原則不能相互調用通過一定的方式才能相互訪問,所以跨進程通訊就稱為inter-process
Time of Update: 2015-01-07
標籤:1.我們可以命名的資源種類有多少?答:res/anim/XML檔案,它們被編譯進逐幀動畫(frame by frame animation)或補間動畫(tweened
Time of Update: 2015-01-07
標籤:/** * * 建立捷徑 * @param map 捷徑表徵圖 * @param appName 捷徑標題 * @param appUrl 捷徑開啟的地址 * @param iconUrl 捷徑表徵圖地址 * * */public static void createShortcut(Context activity ,Bitmap map ,String appName ,String appUrl ,String iconUrl){Intent shortcut = new
Time of Update: 2015-01-07
標籤://實體bean
Time of Update: 2015-01-07
標籤:public class TextViewActivity extends Activity {// 聲明TextView對象private TextView textView;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_textview);//
Time of Update: 2015-01-07
標籤:Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 c1 → c2 → c3 B:
Time of Update: 2015-01-07
標籤:服務端:PHP用戶端:Andorid, HTML5, jQuery,
Time of Update: 2015-01-07
標籤:1 .實現UITextFieldDelegate協議.m檔案裡面實現- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ if(![self.textfildisExclusiveTouch]){ [self.textfildresignFirstResponder];
Time of Update: 2015-01-07
標籤:android app 應用 expandablelistview 前面介紹了整個應用的架構,下面接著繼續介紹各模組設計的細節。 一.“交通篇” 上面三幅圖基本上就是交通版塊所包含的內容了,其中,圖二、三隻涉及 Android 基本的控制項 ExpandableListView
Time of Update: 2015-01-07
標籤:最近做了一個webapp 需求是要滑動頁面翻頁,我使用了大量絕對位置當遇到輸入框時,在部分手機上發現了問題。虛擬鍵盤收回時,整個body全部下移了,經過多次測試,發現是fixed布局的音樂按鈕造成的,改為relative布局後,就正常了,看來絕對位置在手機上還是要慎用啊!!附app地址2015ican.canad.cnwebapp開發絕對位置引發的問題