Time of Update: 2014-01-15
public void parseSearchDirectAllData(ArrayList programmeSites) {if(programmeSites != null) {programmeSites.clear();try { JSONArray segsArray = new JSONArray(jsonString); if (segsArray != null)for (int k = 0; k 0) {for
Time of Update: 2014-01-15
TabHost : 一. TabHost介紹 TabHost組件可以在介面中存放多個選項卡, 很多軟體都使用了改組件進行設計; 1. TabHost常用組件 TabWidget : 該組件就是TabHost標籤頁中上部 或者 下部的按鈕, 可以點擊按鈕切換選項卡;TabSpec : 代表了選項卡介面, 添加一個TabSpec即可添加到TabHost中;-- 建立選項卡 : newTabSpec(String tag),
Time of Update: 2014-01-15
1,工具代碼 public class BytesTransUtil {private String TAG = BytesTransUtil;private static BytesTransUtil instance = null;private BytesTransUtil() {// Log.i(TAG, instance BytesTransUtil);}public static BytesTransUtil getInstance() {if
Time of Update: 2014-01-14
1:git clone git://source.ffmpeg.org/ffmpeg.git ffmpeggit checkout 5e99df019a850e9ffa96d73e72b8a47a93a61de82:export ANDROID_NDK=/home/shilingkai/android_app_dev/android-ndk-r9export TOOLCHAIN=/tmp/ffmpegexport
Time of Update: 2014-01-14
1、Android 開發環境搭建1) 下載 JDK2) 下載 Eclipse3) 下載 Android SDK4) 啟動Eclipse , 安裝 ADT 2、下載安裝Android NDK 3、下載安裝cygwin 由於NDK編譯代碼時必須要用到make和gcc,所以你必須先搭建一個linux環境,
Time of Update: 2014-01-14
Google的雲訊息(GCM)是一個用於給Android裝置發送訊息的免費服務。GCM能夠極大的提高使用者的體驗。你的應用程式會保持最新的狀態,而不用擔心因喚醒無線訊號所造成的電池電量的浪費,也不用使用輪詢來詢問伺服器是否有更新。還有,GCM允許把一個單一的訊息綁定到1000個接收端,這樣你就可以在恰當的時機快速的聯絡到大量的使用者,同時最大限度的減少了伺服器的工作負載。本文討論一些把GCM整合到應用程式中的最佳實務,並且假設你已經熟悉了這個服務的基本實現,如果你還不熟悉,請閱讀&l
Time of Update: 2014-01-13
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:icon="@drawable/ic_launcher" android:title="File"> <menu> <group
Time of Update: 2014-01-14
SQLite是Android中的輕量級的資料庫,其基本操作有增、刪、查、改。每一種操作都有兩個方法,一種是通過SQL語句來執行,一種是用Android提供的方法。 一、建立資料庫(資料庫只建立一次) 複製代碼 1 public class DBHelper extends SQLiteOpenHelper { 2 3 private static final String DB_NAME =
Time of Update: 2014-01-13
引言: TextView之所以需要跑馬燈,是由於文字太長,或者是吸引眼球。關鍵代碼如下:屬性詳解: 還有兩個函數由於在Android開發手冊中沒有找到,但是從字面上可以看出是指出在得到焦點後觸發事件。是指不用撈取焦點,就觸發事件。也就是説一運行,就觸點該事件。android:singleLine="true"是設定TextView只顯示一行 執行個體 <==========
Time of Update: 2014-01-14
Best Time to Buy and Sell Stock IISay you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one
Time of Update: 2014-01-13
我們的IOS行動裝置 App要實現訊息推送,告訴使用者有多少條訊息未讀,類似的效果(笑果),特把APNS和Erlang相關解決方案筆記於此備忘. 首先解決三者的信任關係,Provider(APP Server)的開發方要從Apple Dev Center獲得SSL認證,
Time of Update: 2014-01-13
[html] view plaincopyprint?[html] view plaincopyprint?[html] view
Time of Update: 2014-01-13
引言:
Time of Update: 2014-01-13
一、HTML是什嗎?HTML(hypertext mark-uplanguage)是 超文字標記語言 (HTML), 主要的用處是做網頁, 可以在網頁上顯示 文字、映像、視頻、聲音…HTML只能做靜態網頁二、HTML發展曆史html之父-Tim Berners-Lee(Tim Berners-Lee)1955年6月8日出生於英國倫敦關於詳細請看:http://blog.csdn.net/chinayaosir/article/details/2982025三、W3C介紹world wide
Time of Update: 2014-01-13
8位單片機中一個容易被忽視的溢出問題例:uint16 wTmp ; uint8 x ;x=2;wTmp = (uint16)(x*150);各位,以上這個乘法有沒有問題?wTmp的值是多少?相信有很多人都會不加思考的說,沒問題啊!wTmp=300 。好,問題來了!告訴你,其實結果是 wTmp=44。這裡不作具體解釋,請讀者自已思考,下次在遇到類似此情況的時候千萬有小心!正確寫法:x=2;wTmp = (uint16)(x)*150;
Time of Update: 2014-01-13
在上一篇中我們提到學習HTML5要具備CSS的知識,在頁面設計的時候HTML5知識頁面的布局與結構,要實現一個很絢麗漂亮的介面就需要藉助CSS。下面我們先來回顧一下css2的基本用法,再來看看和css3的關係與區別。1、css是什嗎?cascading
Time of Update: 2014-01-13
Time of Update: 2014-01-13
Github地址:https://github.com/JakeWharton代表作:ActionBarSherlock,Android-ViewPagerIndicator,Nine Old Androids,SwipeToDismissNOA,hugo,butterknife,Android-DirectionalViewPager,
Time of Update: 2014-01-13
)如果Demo打不開請選擇一下版本:#import<CoreData/CoreData.h>NSManagedObject#import <Foundation/Foundation.h>#import "News.h"#define TableName @"News"@interface CoreDateManager : NSObject@property (readonly, strong, nonatomic)
Time of Update: 2014-01-13
Java中使用線程特別簡單,實現Runnable介面 或者 繼承Thread.NDK中使用線程可以在Activity中直接調用java線程,也可以通過JNI啟動線程,這個線程源於POSIX中的線程庫。需要使用POSIX中pthread標頭檔<pthread.h>如果啟動了Posix線程,是無法與Android Java層互動的,主要是因為POSIX線程中無法直接調用JNIEnv 。因此我們需要先把native