Time of Update: 2016-06-19
Linux0.11核心--記憶體管理之1.初始化,linux0.11記憶體管理【著作權,轉載請註明出處。出處:http://www.cnblogs.com/joey-hua/p/5597705.html 】Linux核心因為使用了記憶體分頁機制,所以相對來說好理解些。因為記憶體分頁就是為了方便管理記憶體。說到記憶體分頁,最根部的要屬頁目錄表了,head.h中:extern unsigned long pg_dir[1024];// 記憶體頁目錄數組。每個目錄項為4 位元組。從物理地址0
Time of Update: 2016-06-19
Linux0.11核心--進程調度分析之2.調度,linux0.11核心【著作權,轉載請註明出處。出處:http://www.cnblogs.com/joey-hua/p/5596830.html 】上一篇說到進程調度歸根結底是調用timer_interrupt函數,在system_call.s中:#### int32 -- (int 0x20) 時鐘中斷處理常式。中斷頻率被設定為100Hz(include/linux/sched.h,5),# 定時晶片8253/8254
Time of Update: 2016-06-03
單元測試架構junit,單元測試junit#單元測試junit* 定義一個類繼承AndroidTestCase,在類中定義方法,即可測試該方法* 在指定指令集時,targetPackage指定你要測試的應用的包名 <instrumentation
Time of Update: 2016-06-02
圖表架構HelloCharts(2)柱狀圖,hellocharts柱狀圖1.2.xml代碼activity_column_chart.xml<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="match_parent"
Time of Update: 2016-06-02
Android 在外部儲存讀寫檔案,android讀寫本文主要介紹android中如何在外部儲存讀寫資料sd卡的路徑sdcard:2.3之前的sd卡路徑mnt/sdcard:4.3之前的sd卡路徑storage/sdcard:4.3之後的sd卡路徑開啟file explorer可以看到sdcard是個空的檔案夾,因為這個檔案夾是個捷徑,指向/storag檔案夾,接著開啟storag檔案夾讀寫sd卡最簡單的開啟sd卡的方式File file = new File("sdcard/info.txt"
Time of Update: 2016-05-28
ActivityUI線程和Timer的衝突,activityuitimer建立了一個音樂播放器,在實現seekbar時用到了Timer和TimerTask:在OnDestory中我登出了播放器,但沒有管Timer,所以當程式退出後Timer還在執行,程式出現了這樣的錯誤:因為在OnDestory中我已經登出了MediaPlayer,但Timer啟動並執行過程中調用MediaPlayer.getCurrentPosition(),所以程式出現了錯誤。所以在OnDestory中加上timer.can
Time of Update: 2016-05-28
VS 2015 update2 裝xamarin後,編輯axml檔案無智能提示的解決方案。,xamarinaxml1、從github網上下載xsd檔案。地址:https://github.com/atsushieno/monodroid-schema-gen;2、如果你是以ie或edge瀏覽器下載的,一定要又鍵這個壓縮包,看屬性,,如果有紅框內的屬性,一定要選上解鎖,否則vs因安全性無法開啟從這個解壓出來的檔案。3、解壓這個壓縮包。從中拷貝兩個檔案 android-layout-xml.xsd,
Time of Update: 2016-05-26
關於android4.3 Intel X86 Atom System Image的下載,android4.3atom今天建立android4.3模擬器的時候發現沒有android4.3 Intel X86 Atom System Image可選,開啟android SDK Manager於是希望重現選擇下載安裝,但是時間等得太久,都沒與出現可以下載安裝的按鈕於是從下面的網址選擇相應的版本驚進行安裝:https://software.intel.com/en-us/search/gss/%20x8
Time of Update: 2016-05-26
安卓gridview 網格,多行多列實現,安卓gridview主Activity() private int[] image = { R.drawable.camera, R.drawable.wifi, R.drawable.temperature, R.drawable.lamp, R.drawable.wechat, R.drawable.mic, }; private String[] text = { "網路攝影機", "網路", "溫濕度", "電器"
Time of Update: 2016-05-25
清空Fragment回退棧中某個Fragment,清空fragment回退出棧的方法:getActivity().getSupportFragmentManager().popBackStackImmediate(CreateOneFragment.class.getName(),
Time of Update: 2016-05-24
.replace(R.id.container, new User()).commit();/The method replace(int, Fragment) in the type FragmentTransaction is not app,fragmenttransaction提示錯誤:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments
Time of Update: 2016-05-19
大神部落格,android大神部落格1、鴻洋 http://blog.csdn.net/lmj623565791/article/ 2、stormzhang http://stormzhang.com/ 3、美團技術團隊 http://tech.meituan.com/ 4、愛哥
Time of Update: 2016-05-20
android
Time of Update: 2016-05-18
RxJava 和 RxAndroid 二,rxjavarxandroid前言:對Rx不瞭解的朋友可以先看我的第一篇博文 RxJava 和 RxAndroid ,是對Rxjava的基本介紹 1、merge操作符,合并觀察對象 1 package app.com.myapplication; 2 3 import android.support.v7.app.AppCompatActivity; 4 import android.os.Bundle; 5 6
Time of Update: 2016-05-19
自訂類似於listView中Item背景,listviewitem方法一、drawable/listitem_bk.xmlXml代碼 <?xml version="1.0" encoding="utf-8" ?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> &l
Time of Update: 2016-05-17
SharedPreferences實現記住密碼功能,js實現記住密碼功能SharedPerferences 簡單介紹用於儲存簡單的索引值對資料;它將資料放在 /data/data/<package name>/shared_prefs目錄下,用xml檔案儲存MAP索引值對;SharedPerferences 使用步驟將資料存放區到SharedPerferences中: 1.先要得到SharedPerference對象:(三種方法) 1).使用Context類中的
Time of Update: 2016-05-18
安卓高手之路之 ClassLoader,安卓classloader 我不喜歡那些泛泛而談的去講那些形而上學的道理,更不喜歡記那些既定的東西。靠記憶去彌補思考的人,容易陷入人云亦云的境地,最後必定被記憶所圍困,而最終消亡的是創造力。希望這個高手之路系列能夠記錄我學習安卓的點點滴滴。從而匯成流,聚為江,成為海。
Time of Update: 2016-05-14
跨平台開發的兩種方法及其對比,兩種方法為什麼行動裝置 App開發對很多開發人員來說,都是一件令人頭痛的事?這是因為,每種流行的移動平台都具有自身的開發語言、開發工具及其特徵。這就意味著,你開發一款應用不但需要花費 3 倍的開發時間,並且需要維護 3 個項目,因此開發原生應用的代價是非常巨大的。跨平台開發的兩種方法:幸運的是,有很多公司已經在研究如何使原生 APP的開發變得簡單,目前為止多平台的開發方法主要有兩種:第一種:以 Web應用為核心,填充到原生 app中(即 PhoneGap
Time of Update: 2016-05-15
visual studio 2015
Time of Update: 2016-05-13
TimeUnit 使用,timeunit使用TimeUnit是java.util.concurrent包下面的一個類,表示給定單元粒度的時間段主要作用時間顆粒度轉換延時 常用的顆粒度TimeUnit.DAYS //天TimeUnit.HOURS //小時TimeUnit.MINUTES //分鐘TimeUnit.SECONDS //秒TimeUnit.MILLISECONDS //毫秒