標籤:des android java 使用 io for ar art div
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.
Android提供了豐富的應用程式框架,可以在手機上使用Java語言建立應用程式和遊戲。左側導航中列出了關於如何建立應用程式的API。
If you‘re new to Android development, it‘s important that you understand the following fundamental concepts about the Android app framework:
如果你是Android開發新手,瞭解以下Android應用程式框架有基本的概念很重要:
Apps provide multiple entry points(APP提供多個入口)
Android apps are built as a combination of distinct components that can be invoked individually. For instance, an individual activity provides a single screen for a user interface, and a service independently performs work in the background.
Android應用程式由不同組件構成,這些組件可以單獨使用。比如,提供使用者介面的Activity,後台執行的Service。
From one component you can start another component using an intent. You can even start a component in a different app, such an activity in a maps app to show an address. This model provides 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.
在一個組件中可以通過Intent啟動另外的組件。你甚至可以啟動另外一個APP的組件,比如開啟地圖APP顯示地址的Activity。這種模式為一個APP提供了多個入口,使用者預設行動,其它任何APP都可以調用。
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.
Android提供了一個自適應framework,它允許你可以為不同裝置配置,提供了得天獨厚的優勢。例如,你可以為不同螢幕尺寸建立多套對應的XML布局,系統會基於當前裝置的螢幕尺寸確定應使用哪套布局。
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必須要特定的硬體,如照相機。如果需要,您還可以聲明該硬體在你的APP中是必須的,在Google Play中,不支援這些硬體的裝置將不能安裝APP。
01——Introduction to Android介紹