Time of Update: 2015-02-03
標籤:最近再做一個查詢內的小應用,介面最上面是一個EditText查詢方塊,進行Activity後,總會彈起軟鍵盤。這樣就擋住了查詢方塊下面的其他查詢條件 控制項,感覺很不友好。所以現在要做的就是在進入Activity後,不彈出軟鍵盤了,只有手動點擊輸入框才會彈出。實現方法如下:在AndroidManifest.xml裡面選擇那個acitivity, 把他的android:windowSoftInputMode設定成 stateHidden和 adjustUnspecified
Time of Update: 2015-02-03
標籤:1、匯入類庫#import <AssetsLibrary/AssetsLibrary.h>#import <AVFoundation/AVFoundation.h>2、判斷是否允許使用相機#pragma mark - 確認相機是否允許訪問//返回 1(YES) 表示相機不可用。返回 0(NO) 表示相機可用+(BOOL )checkCameraCanUse{ BOOL flag = NO; //Capture 捕捉器,Video 視頻
Time of Update: 2015-02-03
標籤:補充,自行安裝Ant, 配置ant環境變數, 在android 項目 根目錄下使用 android update project可以自動產生 build.xml 和 local.peoperties
Time of Update: 2015-02-03
標籤:public Cursor query (String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)Query the given table, returning a Cursor over the result set.ParametersString table -
Time of Update: 2015-02-03
標籤: 一、UINavigationItem1> 獲得方式self.navigationItem // self是指控制器2> 作用可以用來設定當前控制器頂部導覽列的內容// 設定導覽列中間的內容self.navigationItem.titleself.navigationItem.titleView二、UIBarButtonItem1> 用在什麼地方// 設定導覽列左上方的內容self.navigationItem.leftBarButtonItem//
Time of Update: 2015-02-03
標籤:android 休眠 wakelock 節電 import android.app.Service;import android.content.Context;import android.os.PowerManager;/** * Wake Lock是一種鎖的機制, 只要有人拿著這個
Time of Update: 2015-02-03
標籤:android 圖片 效能 最佳化 除了緩衝bitmap之外,你還能做其他一些事情來最佳化GC和bitmap的複用。推薦的策略取決於Android的系統版本。附件中的例子會向你展示如何設計app以便在不同的Android版本中提高app的記憶體效能。
Time of Update: 2015-02-03
標籤:我曾經是一個app的渠道推廣人員,負責app的渠道推廣,為了能給app帶來更高的量,我在渠道上花費了大量的時間,以致雩都做半年推廣了,還沒花過一分錢,這樣說起來比較慚愧,現在很多app推廣基本靠花錢,倒是很羨慕,據說花錢的感覺很爽啊。下面就說說我是怎麼鋪渠道的,當時我把渠道分為幾類,手機系統官方商店,手機廠商商店,電訊廠商商店,第三方市集,下載站等等。1.先鋪大的市集要上商店就要先上大的,這就和銷售產品一樣,先上大型的超市渠道。於是,就把國內每個分類的前五大商店都上了,一般手機系統,手機電
Time of Update: 2015-02-03
標籤:1.通過ID尋找 尋找1個:WebElement el=driver.findElement(By.id("com.aurora:id/aurora_action_bar_item")); 列表: List<WebElement> e3=driver.findElements(By.id("com.aurora:id/aurora_menu_item_text"));
Time of Update: 2015-02-03
標籤:升級時提示 Connection failed. Please check your network connection and try again修改安裝目錄下bin\studio.exe.vmoptions檔案,如E:\Android\android-studio\bin\studio.exe.vmoptions新增內容: -Djava.net.preferIPv4Stack=true
Time of Update: 2015-02-03
標籤:Tutorial:Storyboards:https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html Adding a Scene to a
Time of Update: 2015-02-03
標籤:一般的測試只需求設定以下幾個參數即可:1 public void setup() throws Exception{2 DesiredCapabilities capabilities = new DesiredCapabilities();3 capabilities.setCapability("platformName", "Android");4
Time of Update: 2015-02-03
標籤:1.java開發環境搭建2.android開發環境搭建3.安裝Nodejsappium 是用 nodejs 寫的,如果要從原始碼啟動並執行話,nodejs 還真少不了。另外 appium 也是 nodejs 的一個 module。 我們可以並推薦通過 npm 安裝 appium。4.安裝appium可使用用 nodejs 的 npm 安裝,或到官網直接下載appium.exe可用 appium-doctor檢測是否安裝成功appium+java環境搭建
Time of Update: 2015-02-03
標籤:1。找到元素座標;HtmlElement OffsetRectangle.X,Y屬性可以知道座標2。C#控制滑鼠移動通過SetCursorPos(x,y)可以控制滑鼠座標 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using
Time of Update: 2015-02-03
標籤:I have a HashMap which I would pass to another Activity class. I simply use this code:Intent intent = new Intent(ComplainActivity.this, ComplainDetailActivity.class); bundle.putSerializable("myBooleanArray",checkMap);
Time of Update: 2015-02-03
標籤:一款真的不錯的安卓飛行射擊遊戲源碼,喜歡的朋友可以研究一下吧。遊戲一共三關。自適應螢幕遊戲有幾個地方說明下:1. 如果剛進入遊戲,提示錯誤並退出。請把LoadResource 類裡面的以下代碼改下: //載入爆炸圖片 for(int i=1; i<=77; i+
Time of Update: 2015-02-03
標籤: 轉載自 http://www.cnblogs.com/liukunpeng/p/3737412.html首先介紹一下,AvAudioPlayer它是蘋果公司封裝好的一個類,用起來很方便,功能也很強大,但是它只支援播放沙箱存好的音樂,不支援線上播放,是蘋果公司自家ipod播放器專用的。這點大家知道即可不必深究; 1,建立AvAudioPlayer:在工程中匯入(AVFoundation.framework)架構,它是首要的,否則一切免談,然後匯入(#import
Time of Update: 2015-02-03
標籤:android ios 前端 內容簡介介紹目前前端人員開發app的幾種方法,具體介紹hbuilder開發app,一扇贊新的大門~無所不能的js最開始js僅僅局限於網頁上一些效果,操作網頁內容等,但是nodejs把js帶入了後端,也就是伺服器端,從此前端人員可以涉及後端,前後通吃,native.js(以及其他js,稍候介紹)把js帶入了移動端,從此前端人員前後移動通吃。前端涉及app的兩種方
Time of Update: 2015-02-03
標籤:輸入密碼 無線網卡 蘋果電腦 files 無線網卡:TP-LINK TL-WN722N 晶片AR9271 沒有驅動使用小度隨身wifi蘋果電腦裡面一直說的 S/L/E 是指哪個目錄啊/System/Library/Extensions無線網卡驅動(教程稱10.9 10.10都可用,親測10.9.3可用)有kextwizard 中文版0.
Time of Update: 2015-02-03
標籤:ios 資料結構 都需要包含Foundation.h標頭檔CG:CoreGraphics架構簡稱,CG開頭的在Foundation架構中有聲明,但是沒有實現NS:NextStep一 NSRange範圍1 定義:typedef struct _NSRange{NSUInteger location;NSUInteger length;}NSRange;2 樣本:NSString* str = @"I love