Android: Creating wearable apps and android wearable apps
Install a wearable Application
During development, you can directly install an application on a wearable device like a mobile application. Use the Play button on adb install or Android Studio.
When you are ready for release, you need to embed the wearable app into a mobile app. When a user installs a mobile app from Google Play, a connected wearable device will automatically receive the application.
Note: automatic installation only works when the APP uses the Release Key for signing, rather than the Debug Key ).
Select wear from the Run/Debug configuration menu and click Play. The activity will be Run and "Hello world!" will be printed !" Text.
Contains the correct Library
The Project Wizard will help you import the correct dependencies to the build. gradle file of the corresponding module. However, these dependencies are not necessary. Refer to the descriptions below to find out what is unnecessary:
1. Notifications)
The Android v4 support library (or v13, including v4) contains notifications used between extended mobile apps and wearable devices.
For notifications that only appear on the wearable device (that is, notifications sent by the wearable application), you only need to use the standard framework APIs (API Level 20, you can remove the dependent libraries of the mobile module.
2. Wearable Data Layer)
To use the wearable data layer APIs to synchronously send data between devices and handheld devices, you need the latest version of Google Play. If you do not use these APIs, remove these Dependencies from the module.
3. Wearable UI support library)
This is an unofficial library, including some interface components specifically designed for wearable devices. We encourage you to use these components in applications, because these components generally contain industry best practices.
Although it may be updated later, it will not affect your application usage, because these libraries are statically compiled into your application. To use the latest features, you need to use the latest static library and recompile the link.
These libraries are only available for wearable device apps.
In the next course, you will learn how to create a wearable APP layout and use the various language operations supported by the platform.
By iefreer
How does eclipse create an Android application?
Select the first one. Android Application Project
The creation steps are as follows:
How does android development create multiple independent applications under the same project?
It is also possible in android. the startup Item of each project is an activity. You only need to leave the activity interface (in fact, you do not need to leave it out, because only startActivity () is required to start an activity () method): for example, if you want a program that contains both a calculator and a reader, you can create an activity with two buttons in it. One is to enable the calculator, one is to start reading and point to the corresponding programs respectively. In this way, your project contains multiple separate applications.
The code is dead, and the program is intended for use. What we need to do is to make a living thing based on the dead code. Come on!