Scroll Essential Android 2.3 Manual do Utilizador Página 11

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 47
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 10
CHAPTER 2
What About the Sample Apps?
By Michael Hahn, December 2014
Google provides a variety of sample applications for wearables that demonstrate the basic capabilities of Android
Wear. All are Android Studio projects that you can download, compile, and run on a wearable. This section provides
an introduction to the following examples.
Watchface
ElizaChat
RecipeAssistant
Notifications
2.1 Open a Sample Project in Android Studio
1. If you have not already done so, Set Up the Development Environment.
2. Start Android Studio. The Welcome screen is displayed.
3. Select Import an Android code sample from the Quick Start panel. The Browse Samples page is displayed.
4. Select the desired sample from the list of samples.
5. Click Next. The Sample Setup page is displayed.
6. Accept the defaults and click Finish.
7. Verify that the project opens without errors. Sometimes you need to install or update sdk packages.
8. Start the Android Wear companion app on your Android handheld, if necessary.
2.2 Launch the Sample App or Service
2.2.1 Handheld Code
1. Select Application in the toolbar.
2. Select Run. If the sample has a default Activity, it is started.
3. If the sample does not have a default activity, the Run/Debug Configuration dialog is displayed. Select Do Not
Launch Activity, then click OK.
7
Vista de página 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 46 47

Comentários a estes Manuais

Sem comentários