Time of Update: 2015-01-15
標籤:iOS 頁面間的跳轉目前有3種方式:1、利用StroyBorad這裡以TableView的靜態cell為例,選中第一個cell按住ctrl往新的ViewController上拖,彈出對話方塊選擇show或present modally2、代碼跳轉- (IBAction)Push:(id)sender { CATransition *animation = [CATransition animation]; [animation
Time of Update: 2015-01-15
標籤:假設A頁面要跳到B頁面,A頁面需要擷取B頁面傳回來的參數來確定顯示哪個列表。主要代碼如下: 在A頁面中: Intent intent = new
Time of Update: 2015-01-15
標籤:1:插入圖片替換 //代碼 mSubjectDetailView = (TextView) findViewById(R.id.subject_detail); CharSequence text = "★,dsfdsfdddd,如果fdsfs★東東"; SpannableStringBuilder builder = new SpannableStringBuilder(text); String
Time of Update: 2015-01-15
標籤: 最近打算做一個時間助手,一個service監聽課表資訊。課表資訊可以通過另外的activity來設定,所以這裡就涉及到了資料的同步問題。我設定後的資訊必須同步到監聽的資訊去。 在java中我們用全域變數來完成這樣子的任務,android提供了另外的方法,叫ApplicationContext。首先,建立一個資料類MyAppData繼承Application,然後在mainifest聲明:在application標籤裡面加入
Time of Update: 2015-01-15
標籤:升級ubuntu的14.04後,android的源碼又編譯錯誤了,一下是錯誤說明赫解決方案: 1、make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] 斷開的管道解決方案: sudo apt-get install bisonsudo apt-get install flex2、sh: 1: gperf: not foundcalling gperf
Time of Update: 2015-01-16
標籤:ios開發 ios線程 多線程 // 建立線程方式1- (void)test1{ // 執行個體化一個線程對像 NSThread *thread = [[NSThreadalloc] initWithTarget:self selector:@selector(run) object:nil]; &
Time of Update: 2015-01-16
標籤:1. 通過拿到當前的進程 id ,調用 shell 命令,殺死進程。 int pid = android.os.Process.myPid(); String
Time of Update: 2015-01-15
標籤:android viewpager 廣告欄 現在常見的廣告欄效果,自動切換廣告,也可手動滑動切換。我用ViewPager實現的,廢話不多說,上代碼:1、布局檔案 layout_ad_pager.xml<?xml version="1.0" encoding="utf-8"?><FrameLayout
Time of Update: 2015-01-15
標籤:android 源碼 frameworks aidl </pre><p> <span style="font-size:12px;">AIDL是<span style="color: rgb(51, 51, 51);
Time of Update: 2015-01-15
標籤:以前使用倒計時都是自己寫的,通過handler實現,才發現android os 已經實現了這個工具類。簡單使用如下。 1 import android.app.Activity; 2 import android.os.Bundle; 3 import android.os.CountDownTimer; 4 5 public class CountDownTimerActivity extends Activity { 6 private Button
Time of Update: 2015-01-15
標籤:Android定義的路徑全域變數ifeq (,$(strip $(OUT_DIR))) OUT_DIR := $(TOPDIR)out endif DEBUG_OUT_DIR := $(OUT_DIR)/debug # Move the host or target under the debug/ directory # if necessary. TARGET_OUT_ROOT_release := $(OUT_DIR)/target TARGET_OUT_ROOT_debug :
Time of Update: 2015-01-15
標籤:一、簡介移動夢網簡訊平台可以通過SOAP、HTTP GET、HTTP POST方式傳送簡訊,下面是我用perl寫的通過SOAP傳送簡訊的指令碼,它比夢網提供的php、java小多了,可以和nagios等系統整合; 二、用法查詢餘額: sendMsgSOAP.pl -u user -p password -b傳送簡訊: sendMsgSOAP.pl -u user -p password -r receiver -m
Time of Update: 2015-01-15
標籤:,EditText在整個activity的最下方,當彈出軟鍵盤時,如果整個activity往上移動,會導致最上面那些部分會看不見,而中間又還有這麼多空白的空間,顯然不合理。為了只移動activity中的部分空間,可以將這塊部分放在ScrollView中,設定ScrollView的layout_weight="1",即讓他佔滿空位。當彈出軟鍵盤時,就會去移動這部分的空間了。彈出軟鍵盤時,不把activity整體往上移,只移動部分
Time of Update: 2015-01-15
標籤:ANDROID Porting系列二、配置一個新產品詳細說明下面的步驟描述了如何配置新的行動裝置和產品的makefile運行android。1. 目錄//vendor/建立一個公司目錄 mkdir
Time of Update: 2015-01-15
標籤:android 開源架構 藍芽 通訊 這篇文章我早早就想寫了,一直忘記了。之前一開始開發Android就搞藍芽開發,好頭大!研究了半個月才能搞定。現在自己整理出了藍芽開發架構,這架構比較簡單,不過希望能協助藍芽開發的朋友們。當然個人技術很菜,不足之處請指導。 藍芽開步驟:
Time of Update: 2015-01-15
標籤:ios ios資源 access iOS 判斷應用是否有使用相機的許可權 NSString *mediaType =AVMediaTypeVideo; AVAuthorizationStatus authStatus =
Time of Update: 2015-01-15
標籤:android oncheckedchangeliste .xml代碼如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=&
Time of Update: 2015-01-15
標籤:viewpager gridview 動畫 布局 導航
Time of Update: 2015-01-15
標籤:【 聲明:著作權,歡迎轉載,請勿用於商業用途。 聯絡信箱:feixiaoxing @163.com】 今天下午,無意看到android一個原生的app代碼,也就一個檔案SpeechRecorderActivity.java。開發android app原來不難。插句話,android所有的內建app都是開源的,它們其實才是最好的學習資料。接著大家可以看一下,具體內容如下,/* * Copyright (C) 2007 The Android
Time of Update: 2015-01-15
標籤:Interface Builder,是用於蘋果公司Mac OS X作業系統的軟體開發程式,Xcode套件的一部分,於1988年創立。它的創造者Jean-Marie Hullot自稱是“一個熱愛旅行、充滿激情的攝影師”,本篇分享Hullot熱愛技術的那一面——創造Interface Builder的過程。因勢而動1981年, Jean-Marie Hullot拿到巴黎第十一大學的電腦科學博士資格後,開始了法國國家資訊與自動化研究所(INRIA)