Time of Update: 2018-12-04
一.Linux系統進程間主要通訊方式 1.socket; 2.name pipe具名管道; 3.message queue訊息佇列; 4.singal訊號量; 5.share memory共用記憶體; 6. semophore訊號量 二.Java系統的主要通訊方式 1.socket; 2.name pipe; 三.Android系統主要通訊方式 Binder 通訊 pipe socket share memory
Time of Update: 2018-12-04
一、異常1.不要忽視異常處理如果像下面的代碼這樣,對catch後的異常作空處理,就像埋下地雷一樣讓人感覺到毛骨悚然:錯誤的做法: void setServerPort(String value) { try { serverPort = Integer.parseInt(value); } catch (NumberFormatException e) { } } 正確的做法(1):在方法聲明時拋出異常,由客戶程式員去負責消化這個
Time of Update: 2018-12-04
CSDN相關文章 1.Android的原始碼可以去同步下載,Android的Linux部分的原始碼怎麼擷取?Linux網站?該擷取那個版本呢?http://topic.csdn.net/u/20110328/16/ab03326f-9309-428e-b52c-0c122cedb5c9.html 2.下載android的原始碼時,curl命令執行怎麼老是報錯::curl:(6) couldnot resolve host.為什嗎?http://topic.csdn.net/u/20110322/
Time of Update: 2018-12-04
原文地址::http://blog.csdn.net/wzcqr0501/article/details/7301227 在平板上android系統預設的案頭表徵圖太小了,需要將其放大。之前在launcher中做了簡單的圖片放大,帶來了表徵圖模糊的問題,重新研究源碼尋求解決辦法。(1)解決思路是先找到應用程式的表徵圖等資訊是怎麼擷取的。這就需要學習PackageManager的相關源碼。PackageManger類包含以下功能:安裝,卸載應用查詢permission相干資訊查詢Applicati
Time of Update: 2018-12-04
文章目錄 一、使用SuperOneClick等軟體進行ROOT破解二、應用程式擷取ROOT許可權代碼三、補充
Time of Update: 2018-12-04
1、下載軟體jdk-6u33-linux-i586.bineclipse-jee-juno-linux-gtk.tar.gzandroid-sdk_r20.0.1-linux.tgzADT-20.0.2.zipandroid-ndk-r8b-linux-x86.tar.bz22、在root目錄下面建立一個單獨的檔案夾dev,將以上軟體都解壓到該檔案夾3、配置環境變數修改/etc/profile檔案,加入以下內容:export
Time of Update: 2018-12-04
環境:Ubuntu 12.04 LTS 32-bit命令:1、安裝依賴庫:apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \ libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
Time of Update: 2018-12-04
android4.0 休眠喚醒會出現之前介面,我們通過案頭遠程工具可以看到在休眠時候,系統已經進入解鎖介面。可是我們喚醒機器的時候,系統會閃一下之前操作的介面,再進入解鎖介面。所以判斷應該是休眠時候沒有把解鎖介面寫入framebuffer,找到寫framebuffer地方:if (LIKELY(hw.canDraw())) { // repaint the framebuffer (if needed) const int index =
Time of Update: 2018-12-04
Android 製作 升級包http://hi.baidu.com/j_fo/blog/item/81ae650953ea5ec13ac76312.htmlhttp://hi.baidu.com/j_fo/blog/item/53a45b82206837af0df4d21a.html如何製作自己的android升級包(update.zip)2010-09-04
Time of Update: 2018-12-04
首先介紹下網上常用的webservice調用方法,例子很多,我就不詳細介紹了,簡單說下流程:// 建立soapObject對象,參數為命名空間和調用方法名,也就是soap_action. 這個可以在WSDL中擷取.SoapObject object = new SoapObject(NAMESPACE, METHOD_NAME);object.addProperty("theCityName", cityName);// 設定屬性 如果屬性過多則一一設定.//
Time of Update: 2018-12-04
對於新浪微博這塊一直很糾結,auth認證讓人吐血。之前項目用到的都是copy別人的,最近想詳細瞭解下,就簡單實現一二,以便以後自己更好的運用. 准別好以下常量 public String consumerKey = "2803926882";// key public String consumerSecret = "d41e6f2d605bd16c785879032ec431f5";// Secret // 自訂回調URL(這個url要在設定檔中配置,)
Time of Update: 2018-12-04
詳細內容轉貼:http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html Key layout maps are installed in /system/usr/keylayout and /data/usr/keylayout. Key layout maps are stored on the device as UTF-8 text files and have the following
Time of Update: 2018-12-04
Guess Android SystemClock keeps system timer and rtc count sync. power on reset -> reserve rtc power onlycommand reboot (system software reset) -> reserve PM, RSC, RTC, GPIO For keep time for situations as sleep/wakeup, command reboot, power
Time of Update: 2018-12-04
首先對於ScrollView和ListView這兩個控制項發生衝突我就不過多解釋了,用過的同學們都知道, 問題:ListView在ScrollView顯示一行半,解決方案:http://jackxlee.blog.51cto.com/2493058/666475 這裡有解決辦法.不過實現後會發現,效果不是很友好,首先由別的介面跳轉至該介面的時候,listview顯示的不正常,
Time of Update: 2018-12-04
What's G-sensor?An g-sensor (or accelerometer) is a device that measures proper acceleration, the acceleration experienced relative to freefall.Single- and multi-axis models are available to detect magnitude and direction of the acceleration as a
Time of Update: 2018-12-04
Android 4.0(ICS) merge handset and tablet UI together, make customer flexible to use which UI they want. On marketing nowdays, phone use phone mode directly and other product like tablet/MID/PND use tablet mode.ICS support multi-panel in tablet mode
Time of Update: 2018-12-04
在第一篇中,我介紹了ViewPager的應用以及禁用滑向下一頁. 這一篇將之加工一下,類比實現新浪裡面的功能,vierpager 分頁. 在新浪微博訊息一欄中是這樣的(注意看title): 上部分頁欄可以用gridview來實現,不過為了省事在這就用textview代替了. 貼出代碼:/*** * ViewPager * * @author zhangjia * */public class MainActivity extends
Time of Update: 2018-12-04
首先我們還是來看一款樣本:(蘑菇街) 看起來很像我們的gridview吧,不過又不像,因為item大小不固定的,看起來是不是別有一番風味,確實如此.就如我們的方角圖形,斯通見慣後也就出現了圓角.下面我簡單介紹下實現方法.第一種:我們在設定檔中定義好列數.如也就是3列.我們需要定義三個LinearLayout,然後把擷取到的圖片add裡面就ok了.main.xml<?xml version="1.0"
Time of Update: 2018-12-04
在我們APP的開發中,往往都會遇到版本的升級,因為不可能有任何一個應用做的完美無缺,所以版本升級對APP應用來說是不可缺少的一部分.像新浪微博等一些應用軟體,三天兩頭提醒我升級.不過這樣也很正常,就像android 升級一樣,為了給使用者提供更方便更人性化的操作.說下具體實現吧,不過我是參考別人的。不管對你們有沒有協助,總之對我有協助啊,如果日後用到就直接copy了.哈哈,不扯了。首先看一個檔案manifest檔案.<manifest
Time of Update: 2018-12-04
上一篇分享了判斷是否在案頭的文章,不過實際用起來有些問題,在htc上面判斷正常,但是在摩托和三星的機器上會出現判斷失敗。//擷取當前啟動並執行程式public static boolean isLauncherRunnig(Context context) { ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);string topActivityName = am.getRunningTasks(