Time of Update: 2015-08-13
標籤:擷取螢幕的寬度與高度有以下幾種方法:1、WindowManager wm = (WindowManager) getContext() .getSystemService(Context.WINDOW_SERVICE);
Time of Update: 2015-08-13
標籤: 網格布局是Android4.0新增的布局管理器,因此需要在Android4.0之後的版本才可以使用,之前的平台使用該布局的話,需要匯入相應的支援庫。
Time of Update: 2015-08-12
標籤:#import "ViewC.h"#import "CLCollectionViewCell.h"#import "HeadView.h"#import "FootView.h"static NSString *cellIdentifier = @"cell";static NSString *headerIdentifier = @"header";static NSString *footerIdentifier = @"footer";@interface ViewC
Time of Update: 2015-08-13
標籤::修改progressbar 讓他滿足自己的需求一般來說只修改一下,progressbar的style就可以滿足需求了:activity代碼:僅僅顯示一個布局而已package com.example.testcustomprogressbar;import android.app.Activity;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;public class
Time of Update: 2015-08-14
標籤:Communicating between the iOS app and the Watch ExtensionThere are four scenarios where an app and an extension might wish to communicate:Watch extension to suspended/terminated iOS app - use +[WKInterfaceDevice openParentApplication:reply:] if
Time of Update: 2015-08-12
標籤:[導語]老羅的鎚子手機公布會視頻優酷上能夠看到,花了兩個小時,認真觀看了。明顯。公布會是成功的,讓非常多羅粉超出了心理預期,但後期究竟賣得怎樣,還得時間來證明。先別說究竟出貨量多少,就從此刻往回看。我為老羅的所做所為深深震撼。這個時代不缺乏創新的科技公司。可是缺乏具有靈魂的公司。作為一
Time of Update: 2015-08-12
標籤:android 手機 linux usb 小米 由於安卓手機底層就是linux核心,因此在linux(比如debian/ubuntu)下usb串連電腦串連手機更加方便。
Time of Update: 2015-08-14
標籤: 1.找到Oracle檔案夾。 2.點開檔案夾找到VirtualBox檔案夾後點開找到VirtualBox.exe,並以管理員方式運行 3.點擊管理,選擇“全域設定”。 4.選擇網路。 5.選擇“僅主機(Host-Only)網路”。點擊編輯按鈕。 6.將IPV4地址設為:192.168.56.1 IPV4網路遮罩設定:255.255.255.0 7.繼續修改DHCP伺服器 伺服器位址:192.168.56.1 伺服器網路遮罩:255.255.255.0
Time of Update: 2015-08-13
標籤:ORuM思想浮出對於ORM(Object Relational Mapping)我們太熟悉了,但是我們從另一個角度可以想象出ORuM(Object Relational un-Mapping)的思想理念。我們在程式中僅僅定義Domain, 而想有個工具可以協助我們"自動化"實現Mapping,我們無需按傳統的ORM思想那樣為Domain手動編碼Mapping。ORuM對於使用者來說更像ORAM(Object-Relational Auto-Mapping)或者ORIM(
Time of Update: 2015-08-12
標籤:在華為榮耀的盒子驗證openni的程式,發現orbbec的3d網路攝影機一直無法使用,一直卡在 裝置找不到的提示。 開始從下面2個方面驗證:1.驗證openni的本身內建的SimpleRead程式,看看是否正常讀取到裝置資訊和depth 圖。2.驗證Android層usb許可權控制問題。 經過驗證發現openni內建的c++的可執行程式,可以正常讀取到裝置資訊和depth 圖。由此推測 orbbec
Time of Update: 2015-08-12
標籤:android 掃描scard卡所有的圖這幾天為了掃描Scard卡所有的圖片的事非常糾結,我原本以為這是一件很簡單的事,但是我發現我錯了。網上也沒有完整的代碼,只是零零碎碎的能掃描單個檔案的代碼。在今天代碼調試通過之後,我覺得我有必要和大家分享一下。1、由於是手機端的掃描,所以最好開個線程。在子線程中把掃描工作完成這是非常重要的,那麼現在開始來看這個類吧!這個代碼可以掃描出SCARD卡上所有的檔案。public class GetFilePathThread implements
Time of Update: 2015-08-13
標籤:機器人 ros android Ubuntu虛擬機器+ROS+Android開發環境配置筆記虛擬機器設定:1.本地環境:Windows 7;VMWare;連網2.虛擬環境 :Ubuntu 14.04,
Time of Update: 2015-08-12
標籤:第四章、Android編譯系統與定製Android平台系統 4.1Android編譯系統Android的源碼由幾十萬個檔案構成,這些檔案之間有的相互依賴,有的又相互獨立,它們按功能或類型又被放到不同目錄下,對於這個大的一個工程,Android通過自己的編譯系統完成編譯過程。4.1.1
Time of Update: 2015-08-12
標籤:EditText屬性描述android:layout_gravity="center_vertical"//設定控制項顯示的位置:預設top,這裡置中顯示,還有bottomandroid:hint="請輸入數字!"//設定顯示在空間上的提示資訊android:numeric="integer"//設定只能輸入整數,如果是小數則是:decimalandroid:singleLine="true"//設定單行輸入,一旦設定為true,則文字不會自動換行。android:gray="top"//
Time of Update: 2015-08-12
標籤:打包時報如下錯誤:<ignore_js_op>Export aborted because fatal lint errors were found. These are listed in the Lint View. Either fix these before running Export again,or turn off"Run full error check when exporting app" in the Android > Lint Error
Time of Update: 2015-08-10
標籤:ibeacon android 藍芽 iBeacon的工作原理是基於Bluetooth Low
Time of Update: 2015-08-11
標籤: – Makefile (全域的Makefile檔案) – bionic (Bionic含義為仿生,這裡面是一些基礎的C庫原始碼) – bootloader (引導載入器) build目錄中的內容不是目標所用的代碼,而是編譯和配置所需要的指令碼和工具) – build (build目錄中的內容不是目標所用的代碼,而是編譯和配置所需要的指令碼和工具) – cts (Android相容性測試套件標準) – libcore (核心庫相關) Dalvik虛擬機器 針對嵌入式裝置最佳化的Java
Time of Update: 2015-08-11
標籤:實現網路下載檔案 支援斷點續傳 既然本節是學習如何使用多線程下載,那我們先要明白什麼是多線程下載,在搞明白什麼是多線程下載之前,需要Crowdsourced Security
Time of Update: 2015-08-11
標籤:Android用戶端向SSH伺服器發送資料主要有三種情況:通過用戶端刪除資料、添加資料和修改資料。1.刪除資料先看看jsp檔案裡面是怎樣刪除資料的:<td align="center"><a href="clasdelete.action?id=<s:property value=‘#st.id‘/>" onclick="if(!window.confirm(‘是否刪除‘))return false;"
Time of Update: 2015-08-11
標籤:/** 初始化pickerView */-(void)initPickerView{ int x_hour = 50; int height_hour = 120; int toolBar_height = 40; float width_hour = MainScreen_Width/2 - x_hour; float y_hour = MainScreen_Height/2 - height_hour - toolBar_height;