Time of Update: 2018-12-03
參考文檔:http://linux.chinaunix.net/techdoc/beginner/2009/02/06/1060906.shtml運行環境:Ubuntu8.101、構建交叉編譯環境Android的預設硬體處理器是ARM的,因此我們需要在自己的host機器上構建交叉編譯環境。來到CodeSourcery,(http://www.codesourcery.com/gnu_toolchains/arm/download.html),點擊GNU/Linux對應的連結,再點擊IA32
Time of Update: 2018-12-03
/** * ScrollView反彈效果的實現 */public class BounceScrollView extends ScrollView {private View inner;// 孩子Viewprivate float y;// 點擊時y座標private Rect normal = new Rect();// 矩形(這裡只是個形式,只是用於判斷是否需要動畫.)private boolean isCount = false;// 是否開始計算public
Time of Update: 2018-12-03
/**版本:1.0日期:2009-03-18作者:HKjinzhao備忘:初始版本*//**版本:1.1日期:2009-03-27作者:HKjinzhao備忘:增加make sdk,修改一些內容*/本次編譯過程主要參考官方文檔(http://source.android.com/download)和網上相關資料(如http://blog.csdn.net/liaoshengjiong/archive/2009/03/04/3957749.aspx)編譯環境:Ubuntu8.101、安裝一些環境
Time of Update: 2018-12-03
一個Tween動畫將對於View對象的內容進行一系列簡單的轉換,在animation提供了所以關於Tween動畫的類,主要有四個常用的類,AlphaAnimation(透明度漸層),RotateAnimation(旋轉動畫),ScaleAnimation(圖片縮放動畫),TranslateAnimation(移動動畫),AnimationSet(一個動畫的集合類),以下是對常用動畫特效類的構造方法的作用和參數進行講解(1) AlphaAnimationpublic AlphaAnimation(
Time of Update: 2018-12-03
實現定時器有很多種方式,在這裡我簡單的介紹幾種方式(1)使用Handler + Runnable的方式Handler handler = new Handler();Runnable runnable = new Runnable() {@Overridepublic void run() {//你要做的事//......System.out.println(Thread.currentThread().getName());handler.postDelayed(runnable, 1000)
Time of Update: 2018-12-03
擷取Android的APK包簽名資訊發表於133 天前 ⁄ 編程開發 ⁄ 暫無評論1、使用命令擷取Android的APK包簽名資訊jarsigner -verify -verbose -certs <your_apk_path.apk> 對於一個keystore的指紋資訊擷取可以用如下命令:D:/>keytool -list -alias alias_name -keystore
Time of Update: 2018-12-03
ffmpeg is an open-source platform for recording, converting, playing and streaming video and audio. It includes libavcodec, a popular video/audio codec.Several popular Android applications are built based on FFmpeg, including RockPlayer, MoboPlayer,
Time of Update: 2018-12-03
Speex on AndroidPosted on April 6, 2011, 1:24 am, by Mario, under Android, OMG Ponies!.JSpeex does not work very well on Android, encoding times are between 0.03 to 0.2 seconds for a 320 samples frame. Way to much for any real-time app (can you say
Time of Update: 2018-12-03
近來找了一些關於android線程間通訊的資料,整理學習了一下,並製作了一個簡單的例子。 andriod提供了 Handler 和 Looper 來滿足線程間的通訊。例如一個子線程從網路上下載了一副圖片,當它下載完成後會發送訊息給主線程,這個訊息是通過綁定在主線程的Handler來傳遞的。在Android,這裡的線程分為有訊息迴圈的線程和沒有訊息迴圈的線程,有訊息迴圈的線程一般都會有一個Looper,這個事android的新
Time of Update: 2018-12-03
/**版本:1.0日期:2009-03-18作者:HKjinzhao備忘:初始版本*//**版本:1.1日期:2009-03-27作者:HKjinzhao備忘:增加make sdk,修改一些內容*/本次編譯過程主要參考官方文檔(http://source.android.com/download)和網上相關資料(如http://blog.csdn.net/liaoshengjiong/archive/2009/03/04/3957749.aspx)編譯環境:Ubuntu8.101、安裝一些環境
Time of Update: 2018-12-03
public class MainActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ImageView imageView; Matrix mMatrix = new Matrix(); imageView = (
Time of Update: 2018-12-03
在上一篇文章《Android JNI開發入門之一》中,我介紹了Android應用程式(APK)怎樣通過JNI調用Native C實現的共用庫。本文將進一步介紹Android應用程式通過JNI調用Native C++實現的共用庫,並實現一個和上文《Android JNI開發入門之一》相同功能的Helloworld應用程式。兩套不同的API
Time of Update: 2018-12-03
package com.puppet.custom.component;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.widget.EditText;public class SearchEditText extends EditText{ private Paint
Time of Update: 2018-12-03
轉載請註明出處:http://blog.csdn.net/xiaanming/article/details/9401981ADB server didn't ACK
Time of Update: 2018-12-03
在ubuntu(9.10)下執行adb devices命令, 返回的結果是:List of devices attached ???????????? no permissions 這意味著,USB串連的裝置是能夠被識別的。Google之後,得知adb server需要以root的許可權啟動,於是有了如下命令:brian@brian-laptop:~/Dev/Java/Android/android-sdk-linux_86/tools$ ./adb
Time of Update: 2018-12-03
轉載請註明出處:http://blog.csdn.net/xiaanming/article/details/9428613Android 應用程式之間內容分享詳解(一)之前給大家分享了你開發的應用程式給其他應用程式分享內容,想瞭解的朋友點擊:Android
Time of Update: 2018-12-03
我們都知道Android4.0以上才帶有滑動開關Switch,那麼在4.0以下呢,很多人會選擇用CheckBox,放兩張圖片,但是這樣子只能點擊,效果不太好,所以我就自訂了滑動開關WiperSwitch這麼一個控制項,下面先把貼上吧,這蹩腳的圖片真戳啊,大家可以自己換三張圖片package com.example.wiperswitch;import android.content.Context;import android.graphics.Bitmap;import
Time of Update: 2018-12-03
接著上一篇Action Bar 加入Back鍵, 在Action Bar中加入自訂View. 依然先看效果:actionbar自訂view的布局檔案action_bar.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content"
Time of Update: 2018-12-03
轉載請註明地址http://blog.csdn.net/xiaanming/article/details/9750689在Android中,Activity主要負責前台頁面的展示,Service主要負責需要長期啟動並執行任務,所以在我們實際開發中,就會常常遇到Activity與Service之間的通訊,我們一般在Activity中啟動後台Service,通過Intent來啟動,Intent中我們可以傳遞資料給Service,而當我們Service執行某些操作之後想要更新UI線程,我們應該怎麼做
Time of Update: 2018-12-03
囉嗦下:發現自己的blog被轉載了,不過沒有註明出處,有點痛並快樂著的感覺。這裡正式申明下:轉載請註明出處,感謝。如有商用目的請務必只會本人。 現在android的APK開發人員方便多了,google為大家提供了整合了eclipse,ADT,SDKManager的IDE。大家可以直接到http://developer.android.com/sdk/index.html下載。下載完成之後,根據自己的需要下載適合自己版本的sdk以及其他的東東。