部署及測試Deployment and Testing

本節所包含的指南說明如何測試應用程式、最佳化其效能、準備發行、使用憑證進行簽署,以及將它發佈至應用程式市集。This section includes guides that explain how to test an application, optimize its performance, prepare it for release, sign it with a certificate, and publish it to an app store.

應用程式的套件大小Application Package Sizes

這篇文章將探討 Xamarin.Android 應用程式套件的組成組件,以及在開發過程的偵錯和發行階段所能進行有效率套件部署的相關策略。This article examines the constituent parts of a Xamarin.Android application package and the associated strategies that can be used for efficient package deployment during debug and release stages of development.

建置應用程式Building Apps

此小節描述建置流程的運作方式,並說明如何建置 ABI 特定 APK。This section describes how the build process works and explains how to build ABI-specific APKs.

命令列模擬器Command Line Emulator

這篇文章簡要地說明如何透過命令列啟動模擬器。This article briefly touches starting the emulator via the command line.

偵錯Debugging

本節中的指南可協助您使用 Android Emulator、實際 Android 裝置和偵錯記錄檔,來為應用程式進行偵錯。The guides in the section help you to debug your app using Android emulators, real Android devices, and the debug log.

設定可偵錯的屬性Setting the Debuggable Attribute

這篇文章說明如何設定可偵錯的屬性,以便讓 adb 之類的工具能夠與 JVM 通訊。This article explains how to set the debuggable attribute so that tools such as adb can communicate with the JVM.

環境Environment

本文描述 Xamarin.Android 的執行環境和會影響程式執行的 Android 系統屬性。This article describes the Xamarin.Android execution environment and the Android system properties that influence program execution.

GDBGDB

這篇文章說明如何使用 gdb 針對 Xamarin.Android 應用程式進行偵錯。This article explains how to use gdb for debugging a Xamarin.Android application.

安裝系統應用程式Installing a System App

此指南說明如何在 Android 裝置上將 Xamarin.Android 應用程式安裝作為系統應用程式,或作為自訂 ROM 的一部分。This guide explains how to install a Xamarin.Android app as a System Application on an Android device or as part of a custom ROM.

在 Android 上連結Linking on Android

這篇文章探討 Xamarin.Android 所使用的連結程序,以減少應用程式的最終大小。This article discusses the linking process used by Xamarin.Android to reduce the final size of an application. 文中描述可執行的各種連結層級,並提供一些指引和疑難排解建議,以減少使用連結器時可能會產生的錯誤。It describes the various levels of linking that can be performed and provides some guidance and troubleshooting advice to mitigate errors that might result from using the linker.

Xamarin.Android 效能Xamarin.Android Performance

有許多技巧可增加利用 Xamarin.Android 建置之應用程式的效能。There are many techniques for increasing the performance of applications built with Xamarin.Android. 這些技巧可共同大幅減少由 CPU 所執行的工作量,和由應用程式所耗用的記憶體數量。Collectively these techniques can greatly reduce the amount of work being performed by a CPU and the amount of memory consumed by an application.

分析 Android 應用程式Profiling Android Apps

本指南說明如何使用分析工具來檢查 Android 應用程式的效能和記憶體使用量。This guide explains how to use profiler tools to examine the performance and memory usage of an Android app.

準備可供發行的應用程式Preparing an Application for Release

應用程式完成編碼和測試之後,必須準備可供散發的套件。After an application has been coded and tested, it is necessary to prepare a package for distribution. 準備此套件的第一項工作是建置可供發行的應用程式,主要是設定一些應用程式屬性。The first task in preparing this package is to build the application for release, which mainly entails setting some application attributes.

簽署 Android 應用程式套件Signing the Android Application Package

了解如何建立 Android 簽署身分識別、建立適用於 Android 應用程式的新簽署憑證,並使用此簽署憑證來簽署應用程式。Learn how to create an Android signing identity, create a new signing certificate for Android applications, and sign the application with the signing certificate. 此外,本主題還說明如何將應用程式匯出至磁碟,以進行「臨機操作」散發。In addition, this topic explains how to export the app to disk for ad-hoc distribution. 產生的 APK 可以側載到 Android 裝置,而不需透過應用程式市集 。The resulting APK can be sideloaded into Android devices without going through an app store.

發行應用程式Publishing an Application

這系列文章說明公開散發以 Xamarin.Android 建立之應用程式的步驟。This series of articles explains the steps for public distribution of an application created with Xamarin.Android. 散發可以透過電子郵件、私人網頁伺服器、Google Play 或適用於 Android 的 Amazon App Store 等管道進行。Distribution can take place via channels such as e-mail, a private web server, Google Play, or the Amazon App Store for Android.