Windows support android apps

Содержание
  1. Supported devices for Your Phone app experiences
  2. Use apps from your Android device on your PC
  3. How do I interact with apps?
  4. How do I know I’m using the multiple apps experience?
  5. How do I pin Android apps into Windows?
  6. How do I remove pinned Android apps from my Windows taskbar or Start menu?
  7. Are the apps from my Android device now installed on my PC?
  8. Can I access Android apps without linking my device?
  9. Can I open multiple apps at the same time?
  10. Использование приложений с устройства Android на компьютере
  11. Как взаимодействовать с приложениями?
  12. Как узнать, использую ли я возможность взаимодействия нескольких приложений?
  13. Как закрепить приложения Android в Windows?
  14. Как удалить закрепленное приложение Android из панели задач Windows или из меню «Пуск»?
  15. Приложения с устройства Android теперь установлены на компьютере?
  16. Можно ли получить доступ к приложениям Android, не связывая устройство?
  17. Можно ли открыть несколько приложений одновременно?
  18. Начало работы с собственными разработками Android в Windows Get started with native Android development on Windows
  19. Установка Android Studio Install Android Studio
  20. Создание нового проекта Create a new project
  21. Java или Котлин Java or Kotlin
  22. Минимальный уровень API Minimum API Level
  23. Мгновенная поддержка приложений и артефакты Андроидкс Instant app support and Androidx artifacts
  24. Файлы проекта Project files
  25. Использование C или C++ для разработки игр Android Use C or C++ for Android game development
  26. Рекомендации по проектированию Design guidelines
  27. Система разработки Fluent для Android Fluent Design System for Android

Supported devices for Your Phone app experiences

As we share new features for the Your Phone app, some of them are dependent on the operating system or type of device you have. Please check the list below to determine if your device is eligible for these experiences.

Currently Link to Windows is only available on the following Android devices in select markets:

Recently released devices:

Samsung Galaxy Fold

Samsung Galaxy Note20 5G

Samsung Galaxy Note20 Ultra 5G

Samsung Galaxy S21 5G

Samsung Galaxy S21+ 5G

Samsung Galaxy S21 Ultra 5G

Samsung Galaxy XCover Pro

Samsung Galaxy Z Flip

Samsung Galaxy Z Flip 5G

Samsung Galaxy Z Fold2 5G

Other eligible devices:

Samsung Galaxy S10e

Samsung Galaxy A8s

Samsung Galaxy A30s

Samsung Galaxy A31

Samsung Galaxy A32

Samsung Galaxy A32 5G

Samsung Galaxy A40

Samsung Galaxy A41

Samsung Galaxy A42 5G

Samsung Galaxy A50

Samsung Galaxy A50s

Samsung Galaxy A51

Samsung Galaxy A51 5G

Samsung Galaxy A52

Samsung Galaxy A52 5G

Samsung Galaxy A60

Samsung Galaxy A70

Samsung Galaxy A70s

Samsung Galaxy A71

Samsung Galaxy A71 5G

Samsung Galaxy A72

Samsung Galaxy A80

Samsung Galaxy A90s

Samsung Galaxy A90 5G

Samsung Galaxy Note9

Samsung Galaxy Note10

Samsung Galaxy Note10+

Samsung Galaxy Note10 Lite

Samsung Galaxy S9

Samsung Galaxy S9+

Samsung Galaxy S10

Samsung Galaxy S10+

Samsung Galaxy S10 Lite

Samsung Galaxy S20

Samsung Galaxy S20+

Samsung Galaxy S20 FE

Samsung Galaxy S20 Ultra

Samsung Galaxy Xcover 5

Phone screen is available on Android devices in select markets running Android 9.0 or greater that have Link to Windows installed (for some devices, it may be preinstalled). These phones include:

Recently released devices:

Samsung Galaxy Fold

Samsung Galaxy Note20 5G

Samsung Galaxy Note20 Ultra 5G

Samsung Galaxy S21 5G

Samsung Galaxy S21+ 5G

Samsung Galaxy S21 Ultra 5G

Samsung Galaxy XCover Pro

Samsung Galaxy Z Flip

Samsung Galaxy Z Flip 5G

Samsung Galaxy Z Fold2 5G

Other eligible devices:

Samsung Galaxy A8s

Samsung Galaxy A30s

Samsung Galaxy A31

Samsung Galaxy A32

Samsung Galaxy A32 5G

Samsung Galaxy A40

Samsung Galaxy A41

Samsung Galaxy A42 5G

Samsung Galaxy A50

Samsung Galaxy A50s

Samsung Galaxy A51

Samsung Galaxy A51 5G

Samsung Galaxy A52

Samsung Galaxy A52 5G

Samsung Galaxy A60

Samsung Galaxy A70

Samsung Galaxy A70s

Samsung Galaxy A71

Samsung Galaxy A71 5G

Samsung Galaxy A72

Samsung Galaxy A80

Samsung Galaxy A90s

Samsung Galaxy A90 5G

Samsung Galaxy Note9

Samsung Galaxy Note10

Samsung Galaxy Note10+

Samsung Galaxy Note10 Lite

Samsung Galaxy S9

Samsung Galaxy S9+

Samsung Galaxy S10

Samsung Galaxy S10+

Samsung Galaxy S10e

Samsung Galaxy S10 Lite

Samsung Galaxy S20

Samsung Galaxy S20+

Samsung Galaxy S20 FE

Samsung Galaxy S20 Ultra

Samsung Galaxy A72

Apps is available on Android devices in select markets running Android 9.0 or greater that have Link to Windows installed. If your Android device is running Android 11.0¹ or higher, you may be eligible for the multiple apps experience. Those devices have an asterisk* next to them.

Recently released devices:

Samsung Galaxy Fold*

Samsung Galaxy Note20 5G*

Samsung Galaxy Note20 Ultra 5G*

Samsung Galaxy S21 5G*

Samsung Galaxy S21+ 5G*

Samsung Galaxy S21 Ultra 5G*

Samsung Galaxy XCover Pro

Samsung Galaxy Z Flip*

Samsung Galaxy Z Flip 5G*

Samsung Galaxy Z Fold2 5G*

Other eligible devices:

Samsung Galaxy A8s

Samsung Galaxy A30s

Samsung Galaxy A31

Samsung Galaxy A40

Samsung Galaxy A41

Samsung Galaxy A42 5G

Samsung Galaxy A50

Samsung Galaxy A50s

Samsung Galaxy A51

Samsung Galaxy A51 5G

Samsung Galaxy A60

Samsung Galaxy A70

Samsung Galaxy A70s

Samsung Galaxy A71

Samsung Galaxy A71 5G

Samsung Galaxy A80

Samsung Galaxy A90s

Samsung Galaxy A90 5G

Samsung Galaxy Note9

Samsung Galaxy Note10*

Samsung Galaxy Note10+*

Samsung Galaxy Note10 Lite*

Samsung Galaxy S9

Samsung Galaxy S9+

Samsung Galaxy S10

Samsung Galaxy S10+

Samsung Galaxy S10e

Samsung Galaxy S10 Lite

Samsung Galaxy S20*

Samsung Galaxy S20+*

Samsung Galaxy S20 FE*

Samsung Galaxy S20 Ultra*

¹ Android 11 availability depends on your mobile device, market availability, and your mobile provider.

Samsung Note10 series

Samsung Galaxy Note20 series

Samsung Galaxy S10 series

Samsung Galaxy S20 series

Samsung Galaxy Z Flip

RCS messaging availability is varied

Whether RCS messaging is available to you also depends on the mobile operator network that you use and the country you live in.

Use apps from your Android device on your PC

With Your Phone apps, you can instantly access the Android apps installed on your mobile device right on your PC. Using a Wi-Fi connection, Apps allows you to browse, play, order, chat, and more – all while using your PC’s larger screen and keyboard. You can add your Android apps as favorites on your PC, pin them to your Start menu and taskbar, and open them in separate windows to use side-by-side with apps on your PC – helping you stay productive.

Note: For the best experience, we recommend making sure your Android device and PC are on the same Wi-Fi network and band. Some Wi-Fi networks offer different connection bands, like a 5 GHz or 2.4 GHz band. Make sure both your devices are connected to the same one. Learn more about how to do that in our Wi-Fi troubleshooting help.

How do I interact with apps?

You can use your PC’s mouse, trackpad, keyboard, pen or touch-enabled screen to open, type, scroll, and interact with apps. A few tips for using your mouse and keyboard:

Single click will behave the same as any single touch/tap interaction

Right click anywhere on your phone screen to navigate to the previous page

Click and hold will behave the same as a tap/hold interaction

Click and hold and drag to select content

Mouse scroll to move between pages vertically or horizontally

Some games and apps might not work with a mouse or keyboard. You’ll need to use a touch-enabled PC to interact with them.

If you’re encountering issues using Apps, our troubleshooting tips may help.

How do I know I’m using the multiple apps experience?

The requirements for using multiple apps are:

A PC running the Windows 10 May 2020 Update or later. For best performance, we recommend having at least 8GB of RAM.

An Android device running Android 11.0.

On your Android device, you need Link to Windows version 2.1.05.6 or higher, or Your Phone Companion version 1.20104.15.0 or higher.

Your Phone versions 1.20104.20.0 or higher.

How do I pin Android apps into Windows?

You can pin your Android apps to the Windows Start menu, taskbar, or add it to Your Phone app favorites.

To pin an app on your PC:

Open the Your Phone app

Right click on the app icon you want to pin or add to your favorites

How do I remove pinned Android apps from my Windows taskbar or Start menu?

If you’ve pinned an app to your taskbar, just right-click the app icon and select Unpin from taskbar.

Читайте также:  Мои друзья windows phone

If you’ve added an app to your Windows start menu, you’ll need to uninstall the app from your apps list. Go to Windows Settings > Apps & features, search for your app in the list. Select it, then select Uninstall.

Are the apps from my Android device now installed on my PC?

No, apps you open will be running from your Android device. The Your Phone app is mirroring apps from your Android device to your PC, meaning you’ll see the same thing on your PC that’s being displayed on your Android device.

Can I access Android apps without linking my device?

No, you need to connect your Android device to your PC via the Your Phone app in order to use this experience. Learn more about how to set up Apps here.

Can I open multiple apps at the same time?

If you have Android 11 on your Android device and one of these select Samsung devices, yes. For most other Android devices, you can only open one Android app at a time.

Использование приложений с устройства Android на компьютере

Через приложение «Ваш телефон» можно получать мгновенный доступ к приложениям Android, установленным на вашем мобильном устройстве, непосредственно с компьютера. При подключении по сети Wi-Fi можно запускать приложения, чтобы просматривать веб-сайты, играть, совершать покупки в интернет-магазинах, беседовать в чате и выполнять другие действия. При этом вы сможете пользоваться большим экраном компьютера и клавиатурой. Можно добавлять приложения Android в избранное на компьютере, закреплять их в меню «Пуск» и на панели задач, а также открывать их в отдельных окнах для параллельного использования с приложениями компьютера, что позволит работать эффективно.

Примечание: Для оптимального взаимодействия рекомендуется использовать устройство с Android и компьютер в одной сети Wi-Fi и в одном диапазоне. Некоторые сети Wi-Fi предлагают различные диапазоны подключения, например, 5 ГГц или 2,4 ГГц. Убедитесь, что оба ваших устройства подключены к одной сети. Дополнительные сведения о том, как это сделать см. в разделе Помощь в устранении неполадок с Wi-Fi.

Как взаимодействовать с приложениями?

Для открытия, ввода, прокручивания и взаимодействия с приложениями можно использовать мышь, сенсорную панель, клавиатуру, перо или сенсорный экран вашего ПК. Советы по использованию мыши и клавиатуры:

Один щелчок соответствует любому одиночному касанию или нажатию

Щелчок правой кнопкой мыши в любом месте экрана телефона позволяет перейти на предыдущую страницу

Щелчок и удерживание соответствует касанию/удерживанию

Щелкните и удерживайте, чтобы перетащить выделенное содержимое

Колесико мыши позволяет перемещаться между страницами по вертикали или по горизонтали

Некоторые игры и приложения могут не работать с мышью или клавиатурой. Для работы с ними потребуется ПК с поддержкой сенсорного ввода.

Если при использовании приложений возникают проблемы, воспользуйтесь советами по устранению неполадок.

Как узнать, использую ли я возможность взаимодействия нескольких приложений?

Требования для использования нескольких приложений:

Компьютер с обновлением Windows 10 за май 2020 г. или более поздней версией. Чтобы добиться оптимальной производительности, рекомендуем иметь не менее 8 ГБ ОЗУ.

Устройство с Android 11.0.

На устройстве с Android необходимо установить приложение «Связь с Windows» версии 2.1.05.6 или более поздней или приложение «Диспетчер вашего телефона» версии 1.20104.15.0 или более поздней.

Приложение «Ваш телефон» версии 1.20104.20.0 или более поздней.

Как закрепить приложения Android в Windows?

Можно закрепить приложения Android в меню «Пуск» в Windows, на панели задач, а также добавить их в избранное в приложении «Ваш телефон».

Закрепление приложения на компьютере:

Откройте приложение «Ваш телефон»

Перейдите в Приложения

Щелкните правой кнопкой мыши значок приложения, которое нужно закрепить или добавить в избранное

Как удалить закрепленное приложение Android из панели задач Windows или из меню «Пуск»?

Если вы закрепили приложение в панели задач, просто щелкните значок приложения правой кнопкой мыши и выберите Открепить от панели задач.

Если вы добавили приложение в меню «Пуск» в Windows, вам потребуется удалить приложение из списка ваших приложений. Перейдите в Windows в раздел Параметры > Приложения и компоненты, найдите ваше приложение в списке. Выберите его, а затем нажмите Удалить.

Приложения с устройства Android теперь установлены на компьютере?

Нет. Приложения, которые вы открываете, запускаются на устройстве Android. Приложение «Ваш телефон» транслирует приложения с вашего устройства Android на ваш компьютер, это означает, что вы увидите у себя на компьютере то же, что отображается на устройстве Android.

Можно ли получить доступ к приложениям Android, не связывая устройство?

Нет. Для использования этой возможности необходимо подключить устройство Android к компьютеру с помощью приложения «Ваш телефон». Узнайте больше о настройке приложений здесь.

Можно ли открыть несколько приложений одновременно?

Если на вашем устройстве установлена версия Android 11 и у вас есть одно из перечисленных устройств Samsung, то да. На большинстве других устройств с Android нельзя одновременно открыть более одного приложения.

Начало работы с собственными разработками Android в Windows Get started with native Android development on Windows

Это руководство поможет вам приступить к работе с Windows для создания собственных приложений Android. This guide will get you started using Windows to create native Android applications. Если вы предпочитаете межплатформенное решение, см. Краткие сведения о некоторых вариантах в разделе Обзор разработки Android в Windows . If you would prefer a cross-platform solution, see Overview of Android development on Windows for a brief summary of some options.

Самым прямым способом создания собственного приложения Android является использование Android Studio с Java или Котлин, хотя можно использовать C или C++ для разработки Android , если у вас есть конкретная цель. The most straight-forward way to create a native Android app is using Android Studio with either Java or Kotlin, though it is also possible to use C or C++ for Android development if you have a specific purpose. Средства Android Studio SDK компилируют файлы кода, данных и ресурсов в архивный пакет Android с расширением apk. The Android Studio SDK tools compile your code, data, and resource files into an archive Android package, .apk file. Один файл APK содержит все содержимое приложения Android, а — файл, с помощью которого устройства на платформе Android используют для установки приложения. One APK file contains all the contents of an Android app and is the file that Android-powered devices use to install the app.

Установка Android Studio Install Android Studio

Android Studio является официальной интегрированной средой разработки для операционной системы Android под управлением Google. Android Studio is the official integrated development environment for Google’s Android operating system. Скачайте последнюю версию Android Studio для Windows. Download the latest version of Android Studio for Windows.

  • Если вы скачали EXE-файл (рекомендуется), дважды щелкните его, чтобы запустить. If you downloaded an .exe file (recommended), double-click to launch it.
  • Если вы загрузили ZIP-файл, распакуйте его, скопируйте папку Android-Studio в папку Program Files, а затем откройте для Android-Studio > папку bin и запустите studio64.exe (для 64-разрядных компьютеров) или studio.exe (для 32-разрядных компьютеров). If you downloaded a .zip file, unpack the ZIP, copy the android-studio folder into your Program Files folder, and then open the android-studio > bin folder and launch studio64.exe (for 64-bit machines) or studio.exe (for 32-bit machines).

Следуйте указаниям мастера установки в Android Studio и установите все рекомендуемые пакеты SDK. Follow the setup wizard in Android Studio and install any SDK packages that it recommends. По мере того как становятся доступными новые средства и другие API-интерфейсы, Android Studio уведомляет вас о наличии всплывающего окна или проверку наличия обновлений, выбрав пункт Справка > Проверка обновления. As new tools and other APIs become available, Android Studio will notify you with a pop-up, or check for updates by selecting Help > Check for Update.

Создание нового проекта Create a new project

Выберите файл > создать > Новый проект. Select File > New > New Project.

В окне Выбор проекта вы сможете выбрать один из следующих шаблонов: In the Choose your project window, you will be able to choose between these templates:

Основные действия: создает простое приложение с панелью приложений, плавающей кнопкой действия и двумя файлами макета: один для действия и один для разделения текстового содержимого. Basic Activity: Creates a simple app with an app bar, a floating action button and two layout files: one for the activity and one to separate out text content.

Пустое действие: создает пустое действие и один файл макета с примером текстового содержимого. Empty Activity: Creates an empty activity and a single layout file with sample text content.

Читайте также:  Gtk themes on windows

Действие «Нижняя область навигации«: создает стандартную нижнюю панель навигации для действия. Bottom Navigation Activity: Creates a standard bottom navigation bar for an activity. Ознакомьтесь с нижним компонентом навигации в руководстве по проектированию материалов Google. See the Bottom Navigation Component in Google’s material design guidelines.

Дополнительные сведения о выборе шаблона действия в документах Android Studio. Learn more about selecting an activity template in the Android Studio docs.

Шаблоны обычно используются для добавления действий в новые и существующие модули приложений. Templates are commonly used to add activities to new and existing app modules. Например, чтобы создать экран входа для пользователей приложения, добавьте действие с шаблоном действия входа. For example, to create a login screen for your app’s users, add an activity with the Login Activity template.

Операционная система Android основана на идее компонентов и использует термины действие и назначение для определения взаимодействий. The Android operating system is based on the idea of components and uses the terms activity and intent to define interactions. Действие представляет отдельную задачу, которая может быть сделана пользователем. An activity represents a single, focused task that a user can do. Действие предоставляет окно для создания пользовательского интерфейса с помощью классов, основанных на классе представления . An activity provides a window for building the user interface using classes based on the View class. Существует жизненный цикл действий в операционной системе Android, определяемый набором шести обратных вызовов: onCreate() , onStart() , onResume() ,, onPause() onStop() и onDestroy() . There is a lifecycle for activities in the Android operating system, defined by a set of six callbacks: onCreate() , onStart() , onResume() , onPause() , onStop() , and onDestroy() . Компоненты действия взаимодействуют друг с другом с помощью объектов намерения . The activity components interact with one another using intent objects. Намерение определяет, какое действие следует запустить, или описывает тип выполняемого действия (и система выбирает подходящее действие, которое может быть даже из другого приложения). Intent either defines the activity to start or describes the type of action to perform (and the system selects the appropriate activity for you, which can even be from a different application). Дополнительные сведения о действиях, жизненном цикле действий и способах их работы см. в документах Android. Learn more about Activities, the Activity Lifecycle, and Intents in the Android docs.

Java или Котлин Java or Kotlin

Java стал языком в 1991, разработанным корпорацией Sun Microsystems, но который теперь принадлежит Oracle. Java became a language in 1991, developed by what was then Sun Microsystems, but which is now owned by Oracle. Она стала одним из самых популярных и мощных языков программирования с одним из самых крупных сообществ поддержки в мире. It has become one of the most popular and powerful programming languages with one of the largest support communities in the world. Язык Java основан на классах и объектно-ориентированной среде, предназначенный для того, чтобы иметь как можно меньше зависимостей реализации. Java is class-based and object-oriented, designed to have as few implementation dependencies as possible. Синтаксис похож на C и C++, но он имеет меньше низкоуровневых средств, чем любой из них. The syntax is similar to C and C++, but it has fewer low-level facilities than either of them.

Котлин был впервые объявлен как новый язык с открытым кодом JetBrains в 2011 и был включен в качестве альтернативы Java в Android Studio с 2017. Kotlin was first announced as a new open-source language by JetBrains in 2011 and has been included as an alternative to Java in Android Studio since 2017. В 2019 мая, Google объявил о Котлин в качестве предпочтительного языка для разработчиков приложений Android, поэтому, несмотря на более новый язык, он также имеет сообщество поддержки и был идентифицирован как один из самых быстрых растущех языков программирования. In May 2019, Google announced Kotlin as it’s preferred language for Android app developers, so despite being a newer language, it also has a strong support community and has been identified as one of the fastest growing programming languages. Котлин является межплатформенным, статически типизированным и предназначен для полноценного взаимодействия с Java. Kotlin is cross-platform, statically typed, and designed to interoperate fully with Java.

Java более широко используется для более широкого спектра приложений и предлагает некоторые функции, которые не Котлин, такие как проверенные исключения, простые типы, не являющиеся классами, статические элементы, незакрытые поля, подстановочные знаки и операторы ternary. Java is more widely used for a broader range of applications and offers some features that Kotlin does not, such as checked exceptions, primitive types that are not classes, static members, non-private fields, wildcard-types, and ternary-operators. Котлин специально разработана для и рекомендуется для Android. Kotlin is specifically designed for and recommended by Android. Он также предлагает некоторые функции, которые не поддерживаются в Java, такие как ссылки null, контролируемые системой типов, необработанные типы, инвариантные массивы, правильные типы функций (в отличие от SAM-преобразований Java), Использование вариативности сайта без подстановочных знаков, смарт-приведение и многое другое. It also offers some features that Java does not, such as null references controlled by the type system, no raw types, invariant arrays, proper function types (as opposed to Java’s SAM-conversions), use-site variance without wildcards, smart casts, and more. В документации по Котлин более подробно рассматривается сравнение с Java. The Kotlin documentation offers a more in-depth look at the comparison to Java.

Минимальный уровень API Minimum API Level

Вам потребуется выбрать минимальный уровень API для приложения. You will need to decide the minimum API level for your application. Это определяет версию Android, которую будет поддерживать ваше приложение. This determines which version of Android your application will support. Более низкие уровни API устарели и, следовательно, поддерживают больше устройств, но более высокие уровни API более новые и таким образом предоставляют больше возможностей. Lower API levels are older and therefore generally support more devices, but higher API levels are newer and therefor provide more features.

Выберите ссылку » помогите мне выбрать «, чтобы открыть диаграмму сравнения, показывающую распределение поддержки устройств и основные функции, связанные с выпуском версии платформы. Select the Help me choose link to open a comparison chart showing the device support distribution and key features associated with the platform version release.

Мгновенная поддержка приложений и артефакты Андроидкс Instant app support and Androidx artifacts

Можно заметить, что флажок для поддержки мгновенных приложений и другой для использования артефактов андроидкс в параметрах создания проекта. You may notice a checkbox to Support instant apps and another to Use androidx artifacts in your project creation options. Поддержка мгновенных приложений не проверяется, и андроидкс проверяется как рекомендуемое по умолчанию. The instant apps support is not checked and the androidx is checked as the recommended default.

Google Play мгновенные приложения предоставляют пользователям возможность опробовать приложение или игру, не устанавливая их первыми. Google Play Instant apps provide a way for people to try an app or game without installing it first. Эти мгновенные приложения могут быть распределены по Магазин Google Play, поиску Google, социальным сетям и в любом месте, где вы делитесь ссылкой. These instant apps can be surfaced across the Play Store, Google Search, social networks, and anywhere you share a link. Установив флажок поддерживать мгновенные приложения , вы запрашиваете Android Studio включить в проект пакет SDK для мгновенной разработки Google Play. By checking the Support instant apps box, you are asking Android Studio to include the Google Play Instant Development SDK with your project. Дополнительные сведения о Google Play мгновенных приложениях и о создании пакета приложений с поддержкой мгновенного включениясм. в документации по Android. To learn more about Google Play Instant apps and how to create an instant-enabled app bundle, see the Android documentation.

Артефакты андроидкс представляют новую версию библиотеки поддержки Android и обеспечивает обратную совместимость между выпусками Android. AndroidX artifacts represents the new version of the Android support library and provides backwards-compatibility across Android releases. Андроидкс предоставляет соответствующее пространство имен, начиная со строки андроидкс для всех доступных пакетов. AndroidX provides a consistent namespace starting with the string androidx for all available packages.

Андроидкс теперь является библиотекой по умолчанию. AndroidX is now the default library. Чтобы снять этот флажок и использовать предыдущую библиотеку поддержки, необходимо удалить последний пакет SDK для Android Q. To uncheck this box and use the previous support library requires removing the lastest Android Q SDK. Инструкции см. в разделе использование артефактов андроидкс в StackOverflow для получения инструкций, но сначала обратите внимание, что самые старые пакеты библиотек поддержки были сопоставлены с соответствующими пакетами андроидкс. *. See Uncheck use Androidx artifacts on StackOverflow for instructions, but first note that the former Support Library packages have been mapped into corresponding androidx.* packages. Полное сопоставление всех старых классов и создание артефактов для новых версий см. в разделе Миграция в андроидкс. For a full mapping of all the old classes and build artifacts to the new ones, see Migrating to AndroidX.

Читайте также:  Как установит windows миллениум

Файлы проекта Project files

Окно проекта Android Studio содержит следующие файлы (убедитесь, что в раскрывающемся меню выбрано представление Android): The Android Studio Project window, contains the following files (be sure that the Android view is selected from the drop-down menu):

приложение > Java > com. example. мифирстапп > MainActivity app > java > com.example.myfirstapp > MainActivity

Основное действие и точка входа для приложения. The main activity and entry point for your app. При сборке и запуске приложения система запускает экземпляр этого действия и загружает его макет. When you build and run your app, the system launches an instance of this Activity and loads its layout.

> макета > > приложений activity_main.xml app > res > layout > activity_main.xml

XML-файл, определяющий макет пользовательского интерфейса действия. The XML file defining the layout for the activity’s user interface (UI). Он содержит элемент TextView с текстом «Hello World» It contains a TextView element with the text «Hello World»

манифесты > приложений > AndroidManifest.xml app > manifests > AndroidManifest.xml

Файл манифеста, описывающий фундаментальные характеристики приложения и всех его компонентов. The manifest file describing the fundamental characteristics of the app and each of its components.

Gradle скрипты > сборка. Gradle Gradle Scripts > build.gradle

Существует два файла с таким именем: «проект: мое первое приложение», для всего проекта и «модуль: приложение» для каждого модуля приложения. There are two files with this name: «Project: My First App», for the entire project, and «Module: app», for each app module. В новом проекте изначально будет только один модуль. A new project will initially only have one module. Используйте файл build. File модуля, чтобы управлять тем, как подключаемый модуль Gradle создает приложение. Use the module’s build.file to control how the Gradle plugin builds your app. Дополнительные сведения см. в документации по Android, настройте статью о сборке . Learn more in the Android docs, Configure your build article.

Использование C или C++ для разработки игр Android Use C or C++ for Android game development

Операционная система Android разработана для поддержки приложений, написанных на Java или Котлин, с помощью инструментов, внедренных в архитектуру системы. The Android operating system is designed to support applications written in Java or Kotlin, benefiting from tooling embedded in the system’s architecture. Многие системные функции, такие как интерфейс Android и обработка намерений, доступны только через интерфейсы Java. Many system features, like Android UI and Intent handling, are only exposed through Java interfaces. Существует несколько экземпляров, в которых может потребоваться использовать код C или C++ через пакет Android Native Development Kit (NDK) , несмотря на некоторые связанные с ним проблемы. There are a few instances where you may want to use C or C++ code via the Android Native Development Kit (NDK) despite some of the associated challenges. Примером является разработка игр, так как игры обычно используют собственную логику отрисовки, написанную на OpenGL или вулкан, и преимущества обширных библиотек C, ориентированных на разработку игр. Game development is an example, since games typically use custom rendering logic written in OpenGL or Vulkan and benefit from a wealth of C libraries focused on game development. Использование C или C++ может также помочь в сжатии дополнительной производительности устройства для достижения низкой задержки или выполнения ресурсоемких вычислительных приложений, таких как физические модели. Using C or C++ might also help you squeeze extra performance out of a device to achieve low latency or run computationally intensive applications, such as physics simulations. Однако в большинстве новичков программистов Android не подходит NDK. The NDK is not appropriate for most novice Android programmers however. Если у вас нет конкретной цели для использования NDK, мы рекомендуем придерживаться Java, Котлин или одной из межплатформенных платформ. Unless you have a specific purpose for using the NDK, we recommend sticking with Java, Kotlin, or one of the cross-platform frameworks.

Чтобы создать новый проект с поддержкой C/C++, выполните следующие действия. To create a new project with C/C++ support:

В разделе Выбор проекта мастера Android Studio выберите тип проекта » *машинный код C++**». In the Choose your project section of the Android Studio wizard, select the Native C++* project type. Нажмите кнопку Далее, заполните оставшиеся поля, а затем нажмите кнопку Далее еще раз. Select Next, complete the remaining fields, then select Next again.

В разделе Настройка поддержки c++ мастера можно настроить проект с помощью стандартного поля C++ . In the Customize C++ Support section of the wizard, you can customize your project with the C++ Standard field. Используйте раскрывающийся список, чтобы выбрать, какую стандартизацию C++ следует использовать. Use the drop-down list to select which standardization of C++ you want to use. При выборе значения цепочки инструментов по умолчанию используется параметр CMAK по умолчанию. Selecting Toolchain Default uses the default CMake setting. Нажмите кнопку Готово. Select Finish.

После Android Studio создает новый проект, на панели проекта можно найти папку cpp , которая содержит собственные исходные файлы, заголовки, скрипты сборки для CMAK или NDK-Build, а также предварительно созданные библиотеки, которые являются частью проекта. Once Android Studio creates your new project, you can find a cpp folder in the Project pane that contains the native source files, headers, build scripts for CMake or ndk-build, and prebuilt libraries that are a part of your project. Вы также можете найти образец исходного файла C++, native-lib.cpp в src/main/cpp/ папке, предоставляющей простую функцию, stringFromJNI() возвращающую строку «Hello from C++». You can also find a sample C++ source file, native-lib.cpp , in the src/main/cpp/ folder which provides a simple stringFromJNI() function returning the string «Hello from C++». Кроме того, вы найдете сценарий сборки CMak, CMakeLists.txt в корневом каталоге вашего модуля, необходимый для создания собственной библиотеки. Additionally, you will find a CMake build script, CMakeLists.txt , in your module’s root directory required for building your native library.

Дополнительные сведения см. в разделе Документация по Android: Добавление кода C и C++ в проект. To learn more, see the Android docs topic: Add C and C++ code to your project. Примеры см. в разделе примеры для Android NDK с репозиторием интеграции с Android Studio C++ на сайте GitHub. For samples, see the Android NDK samples with Android Studio C++ integration repo on GitHub. Чтобы скомпилировать и запустить игру на C++ в Android, используйте API Google Play Game Services. To compile and run a C++ game on Android, use the Google Play Game services API.

Рекомендации по проектированию Design guidelines

Пользователи устройств хотят, чтобы приложения выглядели и обвели себя определенным образом. будь то прокрутка или касание или использование элементов управления голоса, пользователи будут иметь определенные ожидания для того, как должно выглядеть приложение и как его использовать. Device users expect applications to look and behave a certain way. whether swiping or tapping or using voice-controls, users will hold specific expectations for what your application should look like and how to use it. Эти ожидания должны оставаться согласованными, чтобы сократить путаницу и недовольство. These expectations should remain consistent in order to reduce confusion and frustration. Android предлагает руководство по этим платформам и ожиданиям устройств, объединяющее конструкцию Google материала для визуальных элементов и шаблонов навигации, а также рекомендации по качеству совместимости, производительности и безопасности. Android offers a guide to these platform and device expectations that combines the Google Material Design foundation for visual and navigational patterns, along with quality guidelines for compatibility, performance, and security.

Система разработки Fluent для Android Fluent Design System for Android

Кроме того, корпорация Майкрософт предлагает рекомендации по проектированию с целью обеспечения бесперебойной работы по всему портфелю мобильных приложений Майкрософт. Microsoft also offers design guidance with the goal of providing a seamless experience across the entire portfolio of Microsoft’s mobile apps.

Система разработки для Android — это разработка и создание собственных приложений Android, которые по-прежнему уникальны. Fluent Design System for Android design and build custom apps that are natively Android while still uniquely Fluent.

Оцените статью