android我的官方文檔--No.1 Introduction to Android

想買幾本android的書,參考了很久都說所有的書都沒直接看官網(wǎng)文檔來的快,想做個筆記,順便看下渣的英語到底有多渣 。上班了也沒時間去系統(tǒng)的學習進階了,當成一種堅持吧。

Introduction to Android

? ? Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment. The documents listed in the left navigation provide details about how to build apps using Android's various APIs.If you're new to Android development, it's important that you understand the following fundamental concepts about the Android app framework:


??? Android提供了豐富的應用框架允許你去創(chuàng)造app和game在java運行環(huán)境的手機上,這個文檔清單在左邊導航欄提供了詳細的關(guān)于如何用各個Api去組建一個app。如果你剛開始一個新android產(chǎn)品,能提高你對android app 應用框架的根本概念的理解。


Apps provide multiple entry points

Android apps are built as a combination of distinct components that can be invokedindividually. For instance, an individualactivityprovides a singlescreen for a user interface, and aserviceindependently performswork in the background.

From one component you can start another component using anintent. You can even starta component in a different app, such as an activity in a maps app to show an address. This modelprovides multiple entry points for a single app and allows any app to behave as a user's "default"for an action that other apps may invoke.

app 提供了大量的入口進入點

? ? Android app 創(chuàng)建正如一個可以被不同組件可以單獨調(diào)用的結(jié)合體,例如,一個單獨的activity頁面提供了一個對于用戶接口單一的屏幕,并且一個在后臺service服務獨立運行平臺。? ? ? ? 你可以通過Inent從一個組件開啟另外一個組件,你甚至能開啟一個組件在不同的app,如一個地圖app 的顯示位置的activity頁面。這個模塊讓一個單獨的app提供了多入口并且允許任何一個app有用戶默認的行為對于其他app可以調(diào)用的動作。


Apps adapt to different devices

Android provides an adaptive app framework that allows you to provide unique resources for different device configurations. For example, you can create different XML layout files for different screen sizes and the system determines which layout to apply based on the current device's screen size.

You can query the availability of device features at runtime if any app features require specific hardware such as a camera. If necessary, you can also declare features your app requires so app markets such as Google Play Store do not allow installation on devices that do not support that feature.

app 適配不同的設備

? android提供了自適應應用框架去允許你提供了單獨的資源對于不同配置的設備,例如,你可以創(chuàng)建不同的Xml布局文件對于不同的屏幕尺寸和系統(tǒng)決定哪個布局去應用基于正確設備尺寸。

? 你可以運行時查詢設備的可用性如果所有app特征需要特別的硬件如攝像機,如果必須,你也能聲明你的app需求特征所以app 市場如google play stroe 不允許安裝在不支持特征的設備上。



????? to be continued

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容