HTC Android手機字庫
字庫,又稱FLASH,為Flash ROM閃速只讀存儲器。它以代碼的形式裝載了手機的基本程序和各種功能程序。至今字庫這個名詞概念混,很不清楚,到底字庫是什麼呢?實際上我們
Android SurfaceView的運用
下面就貼上一個小程序代碼,主要運用SurfaceView來實現在屏幕上畫一個圓,你可以通過按方向鍵和觸摸屏幕來改變圓的位 置代碼:Activitypackage com.
Android ApiDemos示例解析(12) App->Activity->Redirection
Redirection示例涉及到三個Acitivity: RedirectEnter, RedirectMain,RedirectGetter。示例的主Activity為
Android ApiDemos示例解析(13) App->Activity->Reorder Activities
Reorder Activities 示例有四個相關的Activitives: ReorderOnLaunch, ReorderTwo,ReorderThree, Reo
Android ApiDemos示例解析(15) App->Activity->SetWallpaper
SetWallpaper介紹如何在Android獲取當前Wallpaper,對Wallpaper做些修改,然後用修改後的圖像重新設置Wallpaper。Wallpaper
Android ApiDemos示例解析(18) App->Activity->Wallpaper
Wallpaper介紹一個Activity如何通過Style把系統Wallpaper作為當前Activity的背景。這是WallpaperActivity在 Androi
Android ApiDemos示例解析(22) App->Dialog
這個例子的主Activity定義在AlertDialogSamples.java 主要用來介紹類AlertDialog的用法,AlertDialog提供的功能是多 樣的:
Android ApiDemos示例解析(23) App->Intents
Intents 這個例子的代碼非常簡單:Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent
Android ApiDemos示例解析(25) App->Menu->Inflate from XML
本例演示了如何從Menu 資源(XML 定義)展開菜單項。這個例子的onCreate 采用了使用代碼來創建Activity 界面的方法 而通常的方法是采用Layout資源
Android ApiDemos示例解析 (27)
App->Notification->Notifying Service Controller這個例子介紹了如何在Service中使用Notification
Android ApiDemos示例解析(28):App->Notification->NotifyWithText
除了使用Notification之外,Toast也可以用來通知用戶某件事發生了,Toast為一個透明的對話框,可以在屏幕上顯示幾秒 鐘後自動消失。功能上有點類似Tool
Android ApiDemos示例解析(30) App->Preferences->Preferences from XML
我們在前面的例子Android ApiDemo示例解析(9):App->Activity->Persistent State 介紹了可以使用Shared
Android ApiDemos示例解析(33):App->Preferences->Default Values
DefaultValues 介紹了如何在XML中定義Preference的缺省值。<CheckBoxPreferenceandroid:key=” d
Android ApiDemos示例解析(37):App->Search->Query Search Results
這個例子單獨運行時(從Launcher啟動),這時接受到的Intent不含ACTION_SEARCH,和一個普通的Activity沒有什麼兩樣。在例(36)時,它是作為查
Android ApiDemos示例解析(38)
App->Service->Foreground Service Controller和Windows中的Service類似,Android系統也提供了一種稱
Android ApiDemos示例解析(40):App->Service->Local Service Controller
Local Service Controller 是將LocalService當作“Started”Service來使用,相對於”Bo
Android ApiDemos示例解析(43):App->Service->Remote Service Controller
Remote Service Controller 和使用Local Service的Android ApiDemo示例解析(40):App->Service-&g
Android ApiDemos示例解析(48):Content->Resources->Resources
Android SDK對應沒個定義在res目錄下的資源都會定義一個維一的資源ID。在編譯時會在gen目錄下生成 R.java , 資源ID的 格式為 R.[type].[
Android滑動效果基礎篇(四) Gallery + GridView
Android系統自帶一個GridView和Gallery兩個控件,GridView網格顯示,Gallery單個浏覽,兩者結合起來可以真正實現 Gallery浏覽圖片效果
Android滑動效果進階篇(五) 3D旋轉
前面介紹了利用Android自帶的控件,進行滑動翻頁制作效果,現在我們通過代碼實現一些滑動翻頁的動畫效果。Animation實現動畫有兩個方式:幀動畫(frame-by-