Time of Update: 2014-12-28
標籤:(1)為了能適應多種螢幕尺寸的手機,我們在建立映像的時候就要根據使用者手機螢幕的寬高像素來建立。(2)該軟體將把圖形儲存到sdcard中,在儲存之前,需要檢測sdcard是否存在,是否可寫入。如通過以上檢查,就儲存映像。首先,我們應該檢測sdcard的狀態,如果不可寫入,則給出提示: public void saveBitmap() { String state = Environment.getExternalStorageState(); if
Time of Update: 2014-12-28
標籤:ios customsegue 自訂動畫 原創Blog,轉載請註明出處http://blog.csdn.net/hello_hwc?viewmode=contents實現方式就是繼承UIStoryboardSegue類,然後重寫Perform方法,然後在Storyboard上將類設定為自訂的類這段代碼的作用是建立從中心漸層充滿螢幕的動畫-(void)perform{
Time of Update: 2014-12-28
標籤:經常遇到親朋好友手機操作遇到問題不會解決,就問我,於是找了下現在流行的一些手機螢幕錄製軟體,現分享我比較看好的兩款。這款軟體可以錄製手機螢幕也可以將手機螢幕投影到瀏覽器中:http://yunpan.cn/cf72HcGRGfImS (提取碼:0432)這款軟體需要安裝Google架構服務,下載連結:http://yunpan.cn/cf72PpyAJgukm (提取碼:b516)錄製手機螢幕效果不錯:http://yunpan.cn/cf72rE57EScCf
Time of Update: 2014-12-28
標籤:發現一些剛學android的人,和我當初一樣,對android的線程會存在著一定誤區。 在android中,開啟新線程時,一些人會用以下方法: new Handler().post(r);但是這樣並不是開啟新線程,而只是把當前的任務加入到主線程當中。如果要開啟新線程,則應該使用HandlerThread,使用如下: HandlerThread thread = new HandlerThread(name);thread.start();new
Time of Update: 2014-12-28
標籤:世界變化真快,前段時間windows開發技術熱還在如火如荼,web技術就開始來勢洶洶,正當web呈現欣欣向榮之際,安卓小機器人,咬過一口的蘋果,winPhone開發平台又如閃電般劃破了混沌的web世界。相信很多開發人員都在疑問,為什麼世界不是圍著我轉?而是我在圍著世界轉。我的答案是,少林寺的和尚學打架,首先要學會站樁。要練功,先佔三年樁。少林寺的和尚打架從來不圍著別人轉,而是別人圍著他轉。世界的原理都是相通的,開發人員一樣,要做到腳下生根。最近幾天在看OpenGL的投影矩陣,自己也實現了一
Time of Update: 2014-12-28
標籤:平時項目中會有一些流程,或者是評論相關的東西,這些一般只會是在頁面初次載入一部分,剩餘部分搞一個更多的標籤,當點擊更多的時候,ajax請求把所有資料載入完(當然這裡也有分頁的實現方法,本篇不作討論),
Time of Update: 2014-12-28
標籤: 編譯過程要消耗很長時間,在我的電腦上大概用五個小時左右,如果你的環境配置沒錯的話,編譯就不會出錯。編譯源碼進入到源碼目錄,然後:. build/envsetup.sh之後:lunch選擇:7. aosp_hammerhead-userdebug下面就正式開始了:make -j 5之後盡量就不要碰電腦了,8G 記憶體給虛擬機器分配了 6G,Windows 基本動不了了。來自為知筆記(Wiz)(4) 編譯 Android-5.0 源碼
Time of Update: 2014-12-28
標籤:除了SQLite資料庫外,SharedPreferences也是一種輕型的資料存放區方式,它的本質是基於XML檔案儲存體key-value索引值對資料,通常用來儲存一些簡單的配置資訊。其儲存位置在/data/data/<包名>/shared_prefs目錄下。SharedPreferences對象本身只能擷取資料而不支援儲存和修改,儲存修改是通過Editor對象實現。實現SharedPreferences儲存的步驟如下: 一、根據Context擷取SharedPreferen
Time of Update: 2014-12-28
標籤:WebService是一種基於SOAP協議的遠程調用標準,通過webservice可以將不同作業系統平台、不同語言、不同技術整合到一塊。在Android
Time of Update: 2014-12-28
標籤:android android建立菜單 Mainactivity.java 啟動載入menu@Overridepublic boolean onCreateOptionsMenu(Menu menu) {// Inflate the menu; this adds items to the action bar if it is
Time of Update: 2014-12-28
標籤:iostream iostream.h #include <iostream.h>非標準輸入輸出資料流#include
Time of Update: 2014-12-28
標籤:http://www.itbbu.com/1039.html(JamsMusicPlayer)很棒的音樂播放器(new) (F8)排程的軟體 (Conversations)基於XMPP的應用 (Bitocle)可以在手機上查看自己github上的項目 (Amphitheatre)Android
Time of Update: 2014-12-28
標籤:1、volley 項目地址 https://github.com/smanikandan14/Volley-demo (1) JSON,映像等的非同步下載; (2) 網路請求的排序(scheduling) (3) 網路請求的優先順序處理 (4) 緩衝 (5) 多層級取消請求 (6)
Time of Update: 2014-12-28
標籤:代碼Activity01package com.lxt008;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.Menu;import android.view.MenuInflater;import android.view.MenuItem;public class Activity01 extends Activity{ /
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import android.app.AlertDialog;import android.app.Dialog;import android.app.TabActivity;import android.content.DialogInterface;import android.graphics.Color;import android.os.Bundle;import android.widget.TabHost;import
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.ImageSwitcher;import android.widget.ImageView;import
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import com.lxt008.R;import android.app.Activity;import android.os.Bundle;import android.view.KeyEvent;import android.view.View;import android.widget.EditText;import android.widget.TextView;public class Activity01 extends
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import com.lxt008.R;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.widget.ImageView;import android.widget.TextView;public class Activity01 extends
Time of Update: 2014-12-28
標籤:方法一:輪訓比如主線程要等子線程在得到變數“val”值的時候開始用“val”的值來進行工作,使用輪訓的方法如下:public class SubThread extends Thread{ private boolean flag = false;//標誌位,用來標識是否應該通知主線程或者其他對象改做事情了 @Override public void run() {
Time of Update: 2014-12-28
標籤:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 這道題的難度不算特別大,主要是對鏈表技能的考察。 奉上我寫的代碼: class Solution { public: ListNode