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深入精要
使用實體裝置來開發
|
23
第三章:設定實體裝置與模擬器
第三章
設定實體裝置與模擬器
[Page-25]
開發行動裝置應用程式時,必須在不同的裝置上測試程式;由於
Android
裝置的數量
眾多(撰寫此書的同時,有超過
3,000
部裝置在
Google Play Store
的支援清單中),
這特別是一個挑戰。為了確保能在主要種類的裝置上正常執行,必須測試程式,以及
測試程式在不同的螢幕大小下。你也需要針對不同的硬體功能,包括
OS
版本、可用
的感測器、記憶體的大小或
CPU
。不過好在
ADT
提供了一些工具,讓處理這些挑戰
變得更簡單。我將會說明如何在實體裝置上測試,以及如何利用模擬器來測試那些裝
置上沒有的功能。
使用實體裝置來開發
在許多的測試中,不能完全依賴於模擬器,而是要在實體裝置上檢查你的程式。例如,
當你在測試進階的圖形繪圖、使用到位置服務(
location services
),或利用到進階的
感測器時會特別有用。而這也不限定一定需要一部
Android
裝置來開發(更多詳情參
考第
31
頁「使用硬體加速」),但這是一個常見且簡單能輕易達成的測試方法。這一
節會討論使用
Android
裝置輔助開發的必要步驟。
若你還沒有實體裝置,可以上
Craigslist
eBay
去取得一台便宜、型號較舊的手機。
其他的方法會在這章之後介紹(包括
HAXM
Genymotion
)。
功能及其限制
先前有提到使用實體裝置而不是模擬器的原因,這裡簡述一些重要的功能與其限制:
24
|
第三章:設定實體裝置與模擬器
[Page-26] ...
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