Time of Update: 2018-12-03
1、定義一個類,繼承BroadcastReceiver,用於接收ACTION_LOCALE_CHANGED訊息,代碼如下:package android.ipc;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;public class ipc extends BroadcastReceiver { static final
Time of Update: 2018-12-03
學習目標: 1. 實現新的IME學習目的: 1. 掌握AndroidIME架構學習收穫:Android 1.5 新特色之一就是IME架構(Input Method Framework,IMF),正是它的出現,才為誕生不帶實體鍵盤的裝置提供了可能。IMF設計用來支援不同的IME,包括了soft keyboard,hand-writing recognizes和hard keyboard translators。這裡,我們把焦點鎖定在soft
Time of Update: 2018-12-03
IMF是input method framework的簡稱, 它是Android 1.5新添加進去的一個重要功能,用來支援軟鍵盤、各種的IME。到目前位置(2009-04-03),Android 1.5還沒有正式發布,但IMF的功能已經很穩定,其上已經存在有3種IME。分別是LatinIME(軟鍵盤)、 OpenWnn(CJKIME)、PinyinIME(GOOGLE 拼音),還缺少中文的手寫、五筆。雖說按照已有的IME模組,
Time of Update: 2018-12-03
cts的運行是建立在有android sdk,否則需要下載,1,設定cts環境,需要下載cts sdk, 在這個site http://source.android.com/compatibility/downloads.html 可以下到。使用android的源碼也可以編譯,但是推薦下載最新的cts;2,Configuring CTS Option A - On Linux (Ubuntu or MAC) This Option must be used for CTS
Time of Update: 2018-12-03
在VideoView設定uri的時候,加上"android:resource//你的應用程式套件名"+視頻檔案在R檔案中的ID名稱例如:videoView = (VideoView) this.findViewById(R.id.VideoView01); MediaController controller = new MediaController(this); this.videoView.setMediaController(controller); //下面android:res
Time of Update: 2018-12-03
給android手機系統換字型,對於許多喜歡嘗鮮的使用者都想嘗試一番,而如此才能更換android系統的字型,是許多使用者都不瞭解的,而本文就詳細介紹了更換系統字型的步驟:1、首先要安裝一個軟體RootExplorer(下載:http://www.androidmi.com/xz/xtgj/zenqiang/201003/266.html),用來查看系統檔案夾,安裝好後運行,可以隨便看看,看一下system/font下面,對了,字型就放在這裡面DroidSans.ttf是英文字型Dro
Time of Update: 2018-12-03
問題和目標 有時候希望在java應用程式中來使用root許可權,如修改/system許可權,亦或者如題。思路和原理
Time of Update: 2018-12-03
locale資訊改變之後,會發廣播訊息Intent.ACTION_LOCALE_CHANGED,具體實現在activitymanagerservice.java代碼updateConfigurationLocked函數中, 自己寫接收代碼如下: 接收代碼:public class testReceiver extends BroadcastReceiver { @Override public void onReceive(Context
Time of Update: 2018-12-03
有兩種方法:1、代碼如下:Intent intent=newIntent(); intent.setAction("android.intent.action.VIEW"); Uri CONTENT_URI_BROWSERS =Uri.parse("content://com.android.htmlfileprovider/sdcard/123.html"); intent.setData(CONTENT_URI_BROWSERS);
Time of Update: 2018-12-03
一:update.zip包的製作 1:建立一個目標,在此目錄下準備好需要的檔案,如system目錄檔案、boot.img、recovery.img等. mkdir testupdate cp system/ testupdate/ -tf 註:如果檔案是system.img鏡像可以用unyaffs解壓出來得到system 2:用make-update-script工具產生update-script指令碼,如下 cpmake-update-script
Time of Update: 2018-12-03
android源碼編譯後得到system.img,ramdisk.img,userdata.img映像檔案。其中, ramdisk.img是emulator的檔案系統,system.img包括了主要的包、庫等檔案,userdata.img包括了一些使用者資料,emulator負責載入這3個映像檔案後,會把system.img和userdata.img分別載入到 ramdisk檔案系統中的system和
Time of Update: 2018-12-03
有時需要讓activity在後台運行,具體實現方法如下:在AndroidManifest.xml中,activity屬性中增加: android:theme="@style/BackgroundOnly" android:configChanges="orientation|keyboardHidden"增加後如下所示: <activity
Time of Update: 2018-12-03
最近為了驗證一個演算法的能耗,研究了在開源的Android平台上如何?無線網卡的自動開啟和基於wpa_supplicant的AP自動掃描和關聯,記錄且共用之。目標:自動開啟無線網卡,掃描指定的通道列表,並在發現合適的AP時自動關聯。1. Android平台的WiFi架構Android平台使用的WiFi控制架構是基於大名鼎鼎的wpa_supplicant,它是一個安全中介軟體,為各種無線網卡提供統一的安全機制,如所示: 圖1:Android平台WiFi架構對應上述結構,基於Android
Time of Update: 2018-12-03
為Android核心添加新驅動,並提供menuconfig選項為Android的Linux核心2.6.25添加驅動。1. 在drives目錄下添加hello目錄,內含hello.c Kconfig Makefilehello.c內容:#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){
Time of Update: 2018-12-03
[轉]Android statusBar添加back,home,menu按鈕 在Android介面的系統status bar上添加home,back,menu三個菜單,並完成對應的系統功能。並有higlight效果,修改status bar 高度和status bar上的文字尺寸。這需要修改android
Time of Update: 2018-12-03
轉載1:TSLib ported to Android for touchscreen calibration. Since Android doesn't provide a calibration tool, tslib can be used to calibrate the touchscreen . The values obtained fromts_calibrate in pointercal file can be used in androidframeworks/
Time of Update: 2018-12-03
Android源碼使用一個可定製的編譯系統來產生
Time of Update: 2018-12-03
bionic,整個系統的基礎類庫,Android系統就是基於這個類庫開發的,system,Android系統類別庫,基於bionic類庫開發,包含工具類庫(libcutils),LOG類庫(liblog),壓縮類庫(libzipfile)類。主要功能有:一、完成Android初始化(init)。解析init.rc並開啟系統初始化時需要載入的程式(parser.c),初始化裝置(devices.c),開啟屬性服務(property_service.c)等。二、開啟Android系統的一些基礎服務。
Time of Update: 2018-12-03
1. 從這裡下載韌體 http://extranet.marvell.com/drivers/driverDisplay.do?driverId=203 26409.p45-GPL 是為 Linux內核 2.6 解壓它,你會發現兩個檔案 helper_sd.bin 和 sd8686.bin. 重新命名 helper_sd.bin 至 sd8686_helper.bin (不要問為什麼名稱不同)2.
Time of Update: 2018-12-03
[android-porting] Porting Wifi driver onAndroidGaanTue, 23 Feb 2010 12:05:26-0800Hi everyone, I'm porting wifi driver (Ralink chip) on Android 2.0.1 board.first of all I made some modifies(1) modify build/target/board/generic/BoardConfig.mkadd