Skip to Content
Android Developer Tools深入精要
book

Android Developer Tools深入精要

by Mike Wolfson
July 2014
Intermediate to advanced
248 pages
5h 19m
Chinese
GoTop Information, Inc.
Content preview from Android Developer Tools深入精要
使用模擬器
|
47
在這分頁中,可以使用多種有用的操作,包括:
偵錯(
Debugging
上排的第一個按鈕( )可以讓你進入偵錯模式。在此模式中,你可以將偵錯功
能附加到一個正在執行的應用程式當中;這表示你可以先執行應用程式,執行到
你想測試的地方,再開始除錯功能;這可以很有效率地測試你想除錯的程式碼,
而不會包括到其他的程式碼。
[Page-50]
堆(
Heap
第二組按鈕讓你可以檢查一個正在執行的程式的記憶體(
heap
)使用狀況;更多
內容可查看第
10
章。
裝置螢幕截圖(
Device screen capture
下一個按鈕( )會開啟一個程式,讓你可以把目前裝置上顯示的畫面截圖下來。
按下按鈕如圖
4-10
所示,對話視窗內有一張圖片顯示目前裝置上的畫面,以及一
排按鈕在上方讓你可以儲存、旋轉或刷新圖片。
重置
ADB
Reset ADB
這個倒三角 的圖示是個特別重要的按鈕。這讓你可以重置
ADB
的處理程序。
它重置電腦與裝置間的連線,如果你在電腦與裝置間連線遇到問題,則你可以使
用它。
鍵盤快速鍵
如果你在新增
AVD
時有勾選對鍵盤的支援(查看第
30
頁「模擬器選項」),則數個
按鈕會從電腦端對應到模擬器上。我在表
4-1
中列了一些好用的對應規則,你可以在
Android
開發者網站上的模擬器文件(
http://bit.ly/14cIuY2
)中找到每個按鈕的說明。
4-1
常用快速鍵
按鈕
作用
Home Android Home
F2 Menu
Esc Back
Ctrl-F11 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android 高效能多執行緒

Android 高效能多執行緒

Anders Goransson
深入淺出 jQuery

深入淺出 jQuery

Ryan Benedetti, Ronan Cranley
HTML5 錦囊妙計

HTML5 錦囊妙計

Christopher Schmitt, Kyle Simpson

Publisher Resources

ISBN: 9789863470861