Time of Update: 2018-12-03
How to download the android kernel由於目前從android網站git後的原始碼中不包括kernel,所以需要單獨下載android kernel,產生使用的補丁,下面是我使用的方法,供大家參考;Here is a way of extracting raw Android patches at a certain point intime, though this may be datedken@ken:/data/android/android-kernel$
Time of Update: 2018-12-03
現在android 的可執行程式終於可以在nxp8473--cortex-a9平台運行了,其中直接的原因是:由於宏定義errno造成的-------非法訪問記憶體位址bionic/libc/bionic/libc_init_common.cvoid __libc_init_common(uintptr_t *elfdata){int argc = *elfdata;char** argv = (char**)(elfdata + 1);char** envp = argv + argc + 1
Time of Update: 2018-12-03
S3C6410的雙Framebuffer於Android系統中存在的問題在為S3C6410移植Android系統過程中,發現在拖動工作列,軟鍵盤輸入資訊等情況下,螢幕會出現閃爍現象,類似重新整理率不足情況。一直認為原因是自己porting的系統沒有實現copybit等2D加速功能,導致填充速度不夠快。昨天在調試雙Framebuffer時發現,問題可能出在雙Framebuffer上的交換上。Android使用雙Framebuffer機制,front顯示,back填充,前後互動顯得特別重要。開啟三星
Time of Update: 2018-12-03
1: 開啟網頁: Uri uri = Uri.parse("http://www.baidu.com");Intent intent = new Intent(Intent.ACTION_VIEW,uri);startActivity(intent);2:開啟地圖:Uri uri = Uri.parse("geo:136.46,25.15");Intent intent = new
Time of Update: 2018-12-03
1. 添加Android JNI 介面到Android 代碼樹1.1 假定需要被測試Jni 介面是TestNativeApi.java, 將其添加到Android的代碼樹下 frameworks/base/core/jni/TestNativeApi.java這個Native程式,在Android中被編譯成jar包形式,可以被上層Android java應用調用。而其static 函數中調用 android System.loadLibrary() 來調用下層C++ 的 .so
Time of Update: 2018-12-03
1 .移植準備 1 ,原始碼地址: http://sourceforge.net/projects/iperf/files/iperf/2.0.4%20source/iperf-2.0.4.tar.gz/download , 下載 iperf-2.0.4.tar.gz ,並放到 Adroid_root/external ; 2 ,解壓到 Adroid_root/external/ iperf-2.0.4.tar.gz; tar –zxvf iperf-
Time of Update: 2018-12-03
Android PMEM主要有兩個作用(來自android mail list): 1. GPU or VPU buffers shared with CPU core 2. Android service heap. 其中1是不能cache的,2可以cache,平台裝置註冊中 cached = X即控制是否可以被cache。 =================================================================================
Time of Update: 2018-12-03
本人對於Android中使用的C庫比較感興趣,畢竟是整個android基本庫,所以一一在這裡記錄一下每一個的作用。bluetooth : 藍芽協議棧,官網<http://www.bluez.org/>dhcpcd : dpkg 配置包,官網<http://roy.marples.name/projects/dhcpcd>embunit : 一個嵌入式的單元測試工具。freetype : linux上廣為使用的字型解析庫。iptables :
Time of Update: 2018-12-03
Android輸入事件流程轉載時請註明出處和作者連絡方式文章出處:http://www.limodev.cn/blog作者連絡方式:李先靜 <xianjimli at hotmail dot com>EventHub對輸入裝置進行了封裝。輸入裝置驅動程式對使用者空間應用程式提供一些裝置檔案,這些裝置檔案放在/dev/input裡面。EventHub掃描/dev/input下所有裝置檔案,並開啟它們。bool EventHub::openPlatformInput(void){...
Time of Update: 2018-12-03
為了提高 我們的Activity中的線程的線程優先順序(Thread-Priority),我們需要在AndroidManifest.xml 中使用 'uses-permission' 這樣做:XML: <uses-permission id="android.permission.RAISED_THREAD_PRIORITY"/> 現在你可以在你的Activity中使用以下代碼改變或提高任何線程的優先順序:Java: import
Time of Update: 2018-12-03
File f = new File("/sdcard/");if(!f.exists()) {f.mkdir();}File myCaptureFile = new File("/sdcard/", "bitmap.png");FileOutputStream fos = null;try {fos = new FileOutputStream(myCaptureFile);} catch (FileNotFoundException e) {// TODO Auto-generated
Time of Update: 2018-12-03
實驗題目: 在Android模擬器裡,完成一個簡單的電腦功能。實驗目的: 瞭解Android的常見控制項“文字框、按鈕”等的使用。 第一步、建立工程 選擇SDK的版本,例如我們這裡選擇 2.3.3 至此工程建立完畢。 Android 工程已經預設建立了一個
Time of Update: 2018-12-03
用過VB 、 VC#的朋友都知道,在VB或VC#裡要進行視窗(介面)切換很容易例如在VB、C#裡: 有 Fom1、 Form2、Form3,如果要切換。 Form1.show() Form2.show()相當簡單,當時在Android裡, 要想這麼做,很真實很“難”了。要得動動腦筋了。 按照我以往的編程經驗,我這裡提供一種簡單的解決辦法。 第一步 建立一個工程,例如“UITest”。第二步 對這個工程的代碼檔案進行改造
Time of Update: 2018-12-03
Android環境下使用JCFXBL API介面操作資料庫 文檔整理:王強 http://blog.csdn.net/ex_net/article/details/7833641作者:張建波 郵箱: 281451020@qq.com 電話:13577062679 歡迎來電交流! 一、資料操作中涉及到的資料介面 發送請求的對象AndroidFxBLClientAPI FxBL = new
Time of Update: 2018-12-03
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:focusable ="true" android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever"
Time of Update: 2018-12-03
JCFXBL與WebView整合打造安卓應用服務平台 本系列文章由ex_net(張建波)編寫,轉載請註明出處。http://blog.csdn.net/ex_net/article/details/8829348作者:張建波 郵箱: 281451020@qq.com 電話:13577062679 歡迎來電交流! 一、應用背景介紹
Time of Update: 2018-12-03
操作過Android手機的朋友應該對在待機介面拖動表徵圖的互動效果都有比較深刻的印象,比如說,當把表徵圖拖動起來,表徵圖會懸浮並隨著拖動變換位置,當拖動釋放後,表徵圖會自動的尋找附近合適的空白網格位置。Android在實現這個效果的過程中採用了很多編程技巧,本文著重論述的VacantCell緩衝就很具有代表性。VacantCell緩衝主要是對同一種類型對象的緩衝機制,這種機制的目的是複用已經分配過但已到期的對象,從而避免頻繁的new新的對象。我們知道對象分配是一件比較耗費系統資源的事情,在需要
Time of Update: 2018-12-03
最近在網上看到一篇介紹Android
Time of Update: 2018-12-03
"EditText + Button" 形成一個 "輸入+按鍵響應" 的案例在android編程中是最常見不過的了。但還有一些細節需要注意:在EditText輸入後,點擊Button進行請求,軟鍵盤應該自行消失在EditText輸入後,不點擊Button進行請求,而是直接點擊軟鍵盤上的"斷行符號",那麼也應該能夠正常響應請求針對問題1,可以在響應Button的onClick事件中,主動將軟鍵盤隱藏,加入如下代碼即可InputMethodManager imm
Time of Update: 2018-12-03
1.從google搜尋內容Intent intent = new Intent();intent.setAction(Intent.ACTION_WEB_SEARCH);intent.putExtra(SearchManager.QUERY,"searchString")startActivity(intent);2.瀏覽網頁Uri uri = Uri.parse("http://www.google.com");Intent it = new