Time of Update: 2018-12-05
OMAP4開發資源總結:一、TI OMAP4官網介紹:http://www.ti.com.cn/general/cn/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12843&contentId=53243二、OMAPpedia.org,This site has information on various projects in the communityaround OMAP
Time of Update: 2018-12-05
字元識別經驗總結:一、 視訊框架中字元的識別(video
Time of Update: 2018-12-05
px:是螢幕的像素點in:英寸mm:毫米pt:磅,1/72 英寸dp:一個基於density的抽象單位,如果一個160dpi的螢幕,1dp=1pxdip:等同於dpsp:同dp相似,但還會根據使用者的字型大小偏好來縮放。建議使用sp作為文本的單位,其它用dip 針對dip和px
Time of Update: 2018-12-05
原文: http://chroya.iteye.com/blog/668297以前寫 android ,對事件的處理沒有太深入,只是簡單的 onTouchEvent 就 ok 了,現在寫的 UI ,很多自訂群組件,父 view 和子 view 都需要接收事件,然後處理。如果不弄明白它的事件傳遞機制,很難擁有好的使用者體驗。 Touchevent 中,傳回值是 true ,則說明消耗掉了這個事件,傳回值是 false ,則沒有消耗掉,會繼續傳遞下去,這個是最基本的。
Time of Update: 2018-12-05
public class WifiAlarmReceiver extends BroadcastReceiver{ public static Context senderContext; public WifiAlarmReceiver() { Log.i("AlarmReceiver.AlarmReceiver()", Calendar.getInstance().getTime().toLocaleString()); Log.i("
Time of Update: 2018-12-05
1>軟鍵盤的狀態——隱藏或顯示。一:自動彈出軟鍵盤Timer timer=new Timer(); timer.schedule(new TimerTask() { public void run() { InputMethodManager inputMethodManager=(InputMethodManager) getSystemService(Context.INPUT_METHOD_S
Time of Update: 2018-12-05
ListView 和
Time of Update: 2018-12-05
本文在原文基礎上經過驗證調試,修改部分內容。<!DOCTYPEhtml PUBLIC "-//W3C//DTDXHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"
Time of Update: 2018-12-05
安裝了eclipse 3.7後, 輸入單詞一部分後點Alt+/後,發現自動將單詞補全了,多次點擊會自動切換單詞。但是我更喜歡老版本的方法,點Alt+/後,出現一個列表,列出了所有匹配的方法、欄位等。。供你選擇。開啟eclipse-->window-->preferences-->General-->Keys,發現 Alt+/ 的快速鍵變成 word Completion了。 而原來的是 Content Assist
Time of Update: 2018-12-05
File,FileInputStream,FileReader,InputStreamReader,BufferedReader 的使... 參考資料:l 《 core java 》 12 章l 使用 Java 操作文字檔的方法詳解http://java.ccidnet.com/art/3737/20041108/523627_1.htmll FileReader 是什麼類?和 FileInputStream
Time of Update: 2018-12-05
呼叫相機,有時候需要返回圖片,有時候不需要返回圖片。情況1,在app中呼叫相機,並將拍攝的圖片儲存到指定目錄下,返回到app中:public void startIntentForResult() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(mFile));
Time of Update: 2018-12-05
原文:http://blog.sina.com.cn/s/blog_4a6c59d60100p9ap.htmlandroid為了增加使用者體驗,新增了GestureDetector類,那該類是做什麼用的呢?通俗的講該類是 手勢檢測. 難道是手指有不同的動作系統會檢測到,是的.確實如此.哎,問題來了,那詭異了.那這個類和touch有什麼關係呢?我們平常寫代碼的時候,如何是單擊,我們都是通過掛載個listener來響應這個櫥摸時間.那和這個類有關係嗎? 恩,有關係的.touch
Time of Update: 2018-12-05
寫這個東西的目的在於讓大家瞭解一下SC這個服務管理程式的使用,另一方面也是為了讓大家更進一步的瞭解到NT,2000的服務的一些基礎問題,如果有時間,希望大家好好看看。再來結合起上一次如何開啟termservice服務的那篇文章,在服務方面大家應該比較瞭解了。用這個東西就可以刪除在別人機器裡留下的如ffsniffer,
Time of Update: 2018-12-05
今天遇到一個問題,一個Bitmap封裝到BitmapDrawable中 ,BitmapDrawable drawable = new BitmapDrawable(bmp),Bitmap.getWidth() != BitmapDrawable.getIntrinsicWidth().導致一些問題:查看原始碼,問題如下:在BitmapDrawable中,給mBitmapWidth賦值時,要根據density縮放,其預設值是160,mdpi的情況: mTargetDensity =
Time of Update: 2018-12-05
在同一個視窗中,可以同時有多個AlertDialog,但是他們之間相互覆蓋,最後show()的那個在最上面,Why?代碼如下:new AlertDialog.Builder(SpinnerTestActivity.this).setTitle("One").setMessage("one") .setNegativeButton("button", new DialogInterface.OnClickListener(){ public void
Time of Update: 2018-12-05
以下代碼是在WallpaperChooser.java 中的載入Wallpaper的代碼,1.將圖片名字寫入到R.array.wallpaper中,儲存一個壁紙的名字列表2.將壁紙名字列表名字取出後,用Stirng packageName = res.getResourcePackageName(R.array.wallpaper), 取到PackageNameint id = res.getIdentifiier(name,"drawable",packageName) ;
Time of Update: 2018-12-05
方法一:PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);PowerManager.WakeLock mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");// in onResume() callmWakeLock.acquire();// in onPause() callmWakeLock.release(
Time of Update: 2018-12-05
昨天在三星的Galaxy
Time of Update: 2018-12-05
建議使用 imageView.setImageBitmap(bmp);因為imageView.setImageUri(uri)中imageView中的圖片的density = 160;主要原因是:ImageView中的Drawable(imageView.getDrawable())是一個BitmapDrawable。在setImageUri中,從uri取得的Bitmap封裝到BitmapDrawable中沒有使用當前裝置的density,而是預設的density =
Time of Update: 2018-12-05
三 工具這部分內容主要是提供了一些公用的API或者是類,協助完成各種不同的功能。3.1 字串操作函數g_strxxx等系列函數,方便完成字串操作,有點像C/C++裡邊的函數。這個和CString還不是同一類東西。CString是字串類,可能更加方便。3.2 字元集轉換函式包括UTF8到UNICODE等轉換的函數。值得注意的是檔案名稱的字元集轉換函式,有:l