SlideShare a Scribd company logo
1 of 30
[TUTORIAL] How to develop Android Wear apps for
Beginners. Part 1 - Setup
AndroidWear
apps tutorial androidwear dev
calmarj
Jan 16
13
Android Wear is a new version of the Android system designed specifically for wearables , which
was announced by Google in march 2014. Currently lots of devices running on Android Wear were
released, including well designed Moto 360 and Gear Live by Samsung.But still, amount of
applications using all the benefits of Android Wear in Google Play is considerably small.
In this tutorial I'm going to show you how to create apps for Android Wear from Scratch.
Set up the Android development environment
Studying every new technology begins with launching "Hello World" example. But first you need to
set your development environment.
 JDK – development kit for Java programming language
 Android Studio – IDE to make our Android apps
 Android SDK – special development kit for Android development
 Android Virtual Device – emulator to test our apps
JDK
Android applications are usually developed in Java programming language using the Software
Development Kit. That's why we need to download SDK for working with Java.
1) Download the Java SE Development Kit (JDK) from this
site:http://www.oracle.com/technetwork/java/javase/downloads/175
2) Click Download from the JDK section of the 'Java Platform, Standard Edition' table.
3) Install the JDK environment with default setting
You can find more detailed instruction here:
http://www.oracle.com/technetwork/java/javase/index-137561.html24
Android Studio
Google developed its own environment for Android applications with lots of perks for development.
You can download it here: http://developer.android.com/sdk/index.html190
Here are steps for installation Android Studio on Windows and Linux. For MAC they are pretty
similar.
Installation for Windows:
1) Download and run **android-studio-bundle-(your version).exe**, then click on the "Next" button.
2) Leave all default settings untouched and click the **"Next"** button.
3) Agree with all license agreements and click the "Next" button.
4) Choose a path where to install Android Studio and Android SDK.(**Please note**: use only ASCII
characters - english letters)
5) Android SDK includes Android device emulator. It means you can use emulator when you don't
have Android Wear Watch. I'm going to use emulator in this tutorial. Emulator for Windows requires
installation of the Intel Hardware Accelerated Execution Manager (Intel HAXM).
In this window you can adjust the amount of memory avaliable for HAXM. Leave it recommended
and click the "Next" button.
6) Select or create a folder in which you would like to create the program's shortcut.
7) Now the installation of Android Studio begins. Required time depends on your computer. For me it
took about half an hour. Next click on the «Finish» button.
2q3B44znmHQ.jpg797x606 62.5 KB
Installation for Linux:
Download android-studio-ide-(your-version)-linux.zip. Unzip it (Please note: don't use non ASCII
characters in istallation path). Open terminal, go to Android Studio folder, then go the bin folder
and runstudio.sh script. These steps you can see in the screenshot for my system - Ubuntu 14.10.
qf46TCrt7zY.jpg722x462 35.4 KB
Android SDK
The start window of Android Studio should appear after the installation.(click on created shortcut if
the start window did not appear(for Windows) or run script studio.sh(for Linux)). Android platform
includes systems for phones, tvs and watches, so we need to download special development toolkit
for Android Wear. Click on"Configure" button and turn on SDK Manager.
TEPyZZOW_eI.jpg807x617 51.4 KB
If you want to test your applications on emulator, you also need to download virtual images, (Intel
x86 images will work faster). I recommend you to download samples for SDK, we are going to study
them later. If you want to test your application for different Android Wear versions, you need to
download SDK and virtual image for Android 4.4. Don't change default settings (so USB driver will
be installed. It maintains correct plugging a device into a computer.) Next click on "Install" button and
agree with licence agreement.
H7Ui-u42yjQ.jpg531x807 115 KB
SDK installation can take a while(about couple of hours).
Creating new project
Having downloaded SDK, we move to creating your first Android Wear application. More precisely
we are going to study one of the samples provided by Google.
1. Run Android Studio and Click Option «Import an Android code sample»
l71AnjZ637E.jpg797x606 65.4 KB
2. Type "Wear" in the searching box and choose "Skeleton Wearable App". Then click on
the "Next"button.
r5MLKA-KOOE.jpg807x492 38.4 KB
3. Now you can choose the name and path of your project. (Please note: don't change it unless
there are non ASCII characters) and click "Finish":
ISlD7htljss.jpg807x489 31.2 KB
4. Wait till the project is downloaded and built.
Please notice:
If you can see the error like:
"Failed to import new Gradle project: failed to find Build Tools revision xx.xx.xx "
then you don't have the latest version of the build tool. One of the main benefits of Android
Studio is that it can do menial work. Just click on "Install and sync project".
Your first project is done.
Now we need a watch to test an application. You can use an emulator if you don't have a watch.
Set up an Android Wear Virtual Device(AVD)
1. Click Tools>Android>AVD Manager or click on corresponding button in the panel:
cne4wz9gQVY.jpg807x489 30.2 KB
2. Click Create Virtual Device and after that choose category Wear in List and
select Square or Round Android Wear(you can see that Iselected Round) and click "Next":
1Bf0CYYLM2w.jpg807x492 38 KB
3. Choose Android Wear version(I chose Lollipop for this tutorial, because it's the latest version and
most user-friendly, in my opinion.) and click "Next":
WToOaF9mxUU.jpg807x484 41.4 KB
4. Now you can change name of your AVD (I named it Smartwatch tutorial),choice of screen or
firmware. Also you can turn on Host GPU (better do it, that way the emulator will use computer
video card for rendering).
You can also turn on "Store a snapshot for faster startup". It lets AVD Manager to save
system state on hard disk after you finish working with emulator. It allows you to run the
emulator faster, because any Android emulator runs really slow(except third-party emulators,
like Genomytion)
After you finish setting click on the "Finish" button.
lsqjJs44rGk.jpg807x484 39.7 KB
5. Emulator created successfully.
fr9lLTI-Vck.jpg807x431 25.4 KB
6. Now you can run the emulator, it can take a while. After that you can study how to work with
Android Wear following instructions.
Run the app
We need to set startup configuration to run this app. Click a field left from "Run", there you
can "Edit Configuration" or choose module to run.Choose "Wearable"(because we are going
to run the application for watches) and click on "Run".
Now we can see the list of devices ready for the application to be installed on. Choose the
emulator we created early. (you need to run the emulator first.)
xzjRWgC4Jo8.jpg807x401 34.7 KB
After the application is started click on "Show Notification" button, and application should show
you sample notifications.
You can see that this sample is not adapted for round shape of the watches. You have to avoid
this while developing applications for Android Wear.
Sum up
In this tutorial we set up our system for development applications and ran our first Android Wear
application.
In next tutorial I will show you how to connect your watches(or emulator) with your phone(or
tablet). Please don't hesitate to ask any questions and leave feedback. Thank you for reading.
Building Apps for Wearables
These classes teach you how to build notifications in a handheld app that are
automatically synced to wearables as well as how to build apps that run on wearables.
Note: For more information about the APIs used in these training classes, see the Wear API
reference documentation.
1.
Adding Wearable Features to Notifications
How to build handheld notifications that are synced to and look great on wearables.
1. Creating a Notification
2. Receiving Voice Input in a Notification
3. Adding Pages to a Notification
4. Stacking Notifications
2.
Creating Wearable Apps
How to build apps that run directly on wearables.
1. Creating and Running a Wearable App
2. Creating Custom Layouts
3. Keeping Your App Visible
4. Adding Voice Capabilities
5. Packaging Wearable Apps
6. Debugging over Bluetooth
3.
Creating Custom UIs
How to create custom user interfaces for wearable apps.
1. Defining Layouts
2. Creating Cards
3. Creating Lists
4. Creating a 2D Picker
5. Showing Confirmations
6. Exiting Full-Screen Activities
4.
Sending and Syncing Data
How to sync data between handhelds and wearables.
1. Accessing the Wearable Data Layer
2. Syncing Data Items
3. Transferring Assets
4. Sending and Receiving Messages
5. Handling Data Layer Events
5.
Creating Watch Faces
How to create watch faces for wearables.
1. Designing Watch Faces
2. Building a Watch Face Service
3. Drawing Watch Faces
4. Showing Information in Watch Faces
5. Creating Interactive Watch Faces
6. Providing Configuration Activities
7. Addressing Common Issues
8. Optimizing Performance and Battery Life
6.
Detecting Location
How to detect location data on Android Wear devices.
[TUTORIAL] How to develop Android Wear apps for
Beginners. Part 2 - Connect Android Wear with
handheld device
AndroidWear
androidwear tutorial dev
1
/
4
calmarj
Jan 17
9
In my previous tutorial I told you how to set your development environment for Android Wear, create
and run a project from Google samples, and how to create Android Wear (AVD).
You can read it here:
www.smartwatch.me
[TUTORIAL] How to develop Android Wear apps for Beginners. Part 1 - Setup
Android Wear is a new version of the Android system designed specifically for wearables , which
was announced by Google in march 2014. Currently lots of devices running on Android Wear were
released, including well designed Moto 360 and Gear Live by Samsung.But still, amount of
applications using all the benefits of Android Wear in Google Play is considerably small. In this
tutorial I'm going to show you how to create apps for Android Wear from Scratch. Set up the Android
development en...
You can develop not only Wearable apps with Android Wear SDK, but also you can create apps for
smartphones and tablets (we are going to refer to them as handheld devices) that support output of
data on Android Wear. We are going to create this kind of application in next tutorial.
In this tutorial we are going to learn how to connect your Android Wear emulator with your
handheld device.
Set up the handheld device
1. Download the Android Wear companion app on your handheld device from Google Play.
cJPlJ8Mp5L0.jpg1280x769 83 KB
2. Run the app and allow it access to the location of the device.
3. Enable USB debuging on your device.
On Android 4.0 and newer, you can find in here: Setting > Developer options.
Please notice:
on Android 4.2 and newer, Developer options is hidden by default. You can make it available like
this: go toSettings > About phone and tap Build number 7 times.
J_oR-0xbGwc.jpg1280x769 54.2 KB
4. Connect your handheld device to the computer with a USB cable
5. Check that your device is connected. For this you can use Android Debugs Bridge(ADB) - an
important command line tool for Android development.
For Windows:
Run command prompt(cmd command in the run menu). Go to the Android SDK
folder using cdcommand. Then go to platform tools folder. Now use command: adb.exe
devices. That command will list of all plugged Android devices.
For Linux:
Open terminal and run adb command with “device” flag. Iwill show how to do it on my system:
It showed that my Nexus 7 is attached.
Please notice:
If your list is empty, wait till USB driver is installed.
If your USB driver is installed and list is still empty, use this instruction,(this can occur if you have
Windows 8):http://stackoverflow.com/questions/21408674/adb-error-device-not-found40
If you want to know more about adb you can check Google
documentation:http://developer.android.com/tools/help/adb.html13
or read very good tutorial from Vogella:
http://www.vogella.com/tutorials/AndroidCommandLine/article.html16
Create AVD
You can read in my previous tutorial how to create Android Watch emulator (link in the beginning of
this post)
Connect handheld device with AVD
1. Forward the AVD's communication port to the connected handheld device. You can do it by
following command with adb:
Please notice: you need to do it each time you connect hadheld device.
2. Run Android Wear app on handheld device, go to Settings and click on "Connect to
emulator". (AVD has to be turned on)
3. Now AVD and handheld device are connected. You can send notifications, change the
appearance of the watch. Go to Settings and choose "Demo cards".
Here you can experiment with different demo cards.The cards you select appear as notifications on
the home screen of the emulator. For example, how much time you need to get to home or the
current weather.
Sum up
In this tutorial we connected Android Wear emulator with handheld device and sent sample
information to emulator
In next tutorial I will show you how to create your first app for handheld device, which will sent
custom notifications on watches. Please don't hesitate to ask any questions and leave feedback.
Thank you for reading.
Continue reading to Part 3 - Creating your first app!
www.smartwatch.me
[TUTORIAL] How to develop Android Wear apps for Beginners. Part 3 - Create
your first app "Hello World"
Studying new programming language always begins with "Hello World" program. We are going to do
the same and we will create an application for handheld devices that will send "Hello World"
notification to an Android Wear Device. In my previous tutorials you can read how to set up
development environment, create Android Wear emulator and connect it with your handheld device:
Firstly, we are going to look at the program structure in Android. Android applications usually consist
of the set of A...
Android wear notes

More Related Content

What's hot

Installing android sdk on net beans
Installing android sdk on net beansInstalling android sdk on net beans
Installing android sdk on net beansAravindharamanan S
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Svetlin Nakov
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Daniel Knott
 
Titanium Appcelerator - Beginners
Titanium Appcelerator - BeginnersTitanium Appcelerator - Beginners
Titanium Appcelerator - BeginnersAmbarish Hazarnis
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android AppsClaire Lee
 
Getting Started with XCTest and XCUITest for iOS App Testing
Getting Started with XCTest and XCUITest for iOS App TestingGetting Started with XCTest and XCUITest for iOS App Testing
Getting Started with XCTest and XCUITest for iOS App TestingBitbar
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and InstallationProf. Erwin Globio
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Frank Pham
 
Interfacing android with embedded systems
Interfacing android with embedded systemsInterfacing android with embedded systems
Interfacing android with embedded systemsRaghav Shetty
 
UI Testing for Your Xamarin.Forms Apps
UI Testing for Your Xamarin.Forms AppsUI Testing for Your Xamarin.Forms Apps
UI Testing for Your Xamarin.Forms AppsCodrina Merigo
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Testing android apps with espresso
Testing android apps with espressoTesting android apps with espresso
Testing android apps with espressoÉdipo Souza
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studioFarabi Technology Middle East
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 

What's hot (20)

Installing android sdk on net beans
Installing android sdk on net beansInstalling android sdk on net beans
Installing android sdk on net beans
 
Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021Appium Mobile Testing: Nakov at BurgasConf - July 2021
Appium Mobile Testing: Nakov at BurgasConf - July 2021
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 
Titanium Appcelerator - Beginners
Titanium Appcelerator - BeginnersTitanium Appcelerator - Beginners
Titanium Appcelerator - Beginners
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android Apps
 
Android tutorial1
Android tutorial1Android tutorial1
Android tutorial1
 
Getting Started with XCTest and XCUITest for iOS App Testing
Getting Started with XCTest and XCUITest for iOS App TestingGetting Started with XCTest and XCUITest for iOS App Testing
Getting Started with XCTest and XCUITest for iOS App Testing
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and Installation
 
Android course (lecture2)
Android course (lecture2)Android course (lecture2)
Android course (lecture2)
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
Interfacing android with embedded systems
Interfacing android with embedded systemsInterfacing android with embedded systems
Interfacing android with embedded systems
 
UI Testing for Your Xamarin.Forms Apps
UI Testing for Your Xamarin.Forms AppsUI Testing for Your Xamarin.Forms Apps
UI Testing for Your Xamarin.Forms Apps
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Testing android apps with espresso
Testing android apps with espressoTesting android apps with espresso
Testing android apps with espresso
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studio
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
techSocAndroid1
techSocAndroid1techSocAndroid1
techSocAndroid1
 
ID E's features
ID E's featuresID E's features
ID E's features
 

Viewers also liked

Visual studio-2012-product-guide
Visual studio-2012-product-guideVisual studio-2012-product-guide
Visual studio-2012-product-guideAravindharamanan S
 
Introducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellIntroducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellAravindharamanan S
 
Emergency androidstudiochapter
Emergency androidstudiochapterEmergency androidstudiochapter
Emergency androidstudiochapterAravindharamanan S
 
Rad grid dynamically building a grid and adding a hierarchy with declarative...
Rad grid  dynamically building a grid and adding a hierarchy with declarative...Rad grid  dynamically building a grid and adding a hierarchy with declarative...
Rad grid dynamically building a grid and adding a hierarchy with declarative...Aravindharamanan S
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Aravindharamanan S
 
Twdatasci cjlin-big data analytics - challenges and opportunities
Twdatasci cjlin-big data analytics - challenges and opportunitiesTwdatasci cjlin-big data analytics - challenges and opportunities
Twdatasci cjlin-big data analytics - challenges and opportunitiesAravindharamanan S
 
Workshop 04 android-development
Workshop 04 android-developmentWorkshop 04 android-development
Workshop 04 android-developmentAravindharamanan S
 

Viewers also liked (19)

Release documentation
Release documentationRelease documentation
Release documentation
 
Recommender lecture
Recommender lectureRecommender lecture
Recommender lecture
 
Robust recommendation
Robust recommendationRobust recommendation
Robust recommendation
 
Lec7 collaborative filtering
Lec7 collaborative filteringLec7 collaborative filtering
Lec7 collaborative filtering
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 
Visual studio-2012-product-guide
Visual studio-2012-product-guideVisual studio-2012-product-guide
Visual studio-2012-product-guide
 
Brian.suda.thesis
Brian.suda.thesisBrian.suda.thesis
Brian.suda.thesis
 
Introducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellIntroducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappell
 
Emergency androidstudiochapter
Emergency androidstudiochapterEmergency androidstudiochapter
Emergency androidstudiochapter
 
Rad grid dynamically building a grid and adding a hierarchy with declarative...
Rad grid  dynamically building a grid and adding a hierarchy with declarative...Rad grid  dynamically building a grid and adding a hierarchy with declarative...
Rad grid dynamically building a grid and adding a hierarchy with declarative...
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Wcf tutorial
Wcf tutorialWcf tutorial
Wcf tutorial
 
Item based approach
Item based approachItem based approach
Item based approach
 
Collab filtering-tutorial
Collab filtering-tutorialCollab filtering-tutorial
Collab filtering-tutorial
 
Twdatasci cjlin-big data analytics - challenges and opportunities
Twdatasci cjlin-big data analytics - challenges and opportunitiesTwdatasci cjlin-big data analytics - challenges and opportunities
Twdatasci cjlin-big data analytics - challenges and opportunities
 
9 content-providers
9 content-providers9 content-providers
9 content-providers
 
Aws tkv-ug
Aws tkv-ugAws tkv-ug
Aws tkv-ug
 
Workshop 04 android-development
Workshop 04 android-developmentWorkshop 04 android-development
Workshop 04 android-development
 

Similar to Android wear notes

Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thRishi Kumar
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hourssjmarsh
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxlancelotlaytan1996
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studioParinita03
 
Introduction to Android and Java.pptx
Introduction to Android and Java.pptxIntroduction to Android and Java.pptx
Introduction to Android and Java.pptxGandhiMathy6
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologiesUchechukwu Obimma
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material LabsShady Selim
 
Android testing
Android testingAndroid testing
Android testingBitbar
 
02.1 - Getting Started with Android
02.1 - Getting Started with Android02.1 - Getting Started with Android
02.1 - Getting Started with AndroidOum Saokosal
 

Similar to Android wear notes (20)

Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12th
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Getting started with android studio
Getting started with android studioGetting started with android studio
Getting started with android studio
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hours
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
Introduction to Android and Java.pptx
Introduction to Android and Java.pptxIntroduction to Android and Java.pptx
Introduction to Android and Java.pptx
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologies
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Appium- part 1
Appium- part 1Appium- part 1
Appium- part 1
 
Build Your First Android App
Build Your First Android AppBuild Your First Android App
Build Your First Android App
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material Labs
 
Meteor
MeteorMeteor
Meteor
 
Android testing
Android testingAndroid testing
Android testing
 
02.1 - Getting Started with Android
02.1 - Getting Started with Android02.1 - Getting Started with Android
02.1 - Getting Started with Android
 
Android
AndroidAndroid
Android
 

Recently uploaded

AI ppt introduction , advandtage pros and cons.pptx
AI ppt introduction , advandtage pros and cons.pptxAI ppt introduction , advandtage pros and cons.pptx
AI ppt introduction , advandtage pros and cons.pptxdeepakkrlkr2002
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一A SSS
 
Crack JAG. Guidance program for entry to JAG Dept. & SSB interview
Crack JAG. Guidance program for entry to JAG Dept. & SSB interviewCrack JAG. Guidance program for entry to JAG Dept. & SSB interview
Crack JAG. Guidance program for entry to JAG Dept. & SSB interviewNilendra Kumar
 
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样umasea
 
Ioannis Tzachristas Self-Presentation for MBA.pdf
Ioannis Tzachristas Self-Presentation for MBA.pdfIoannis Tzachristas Self-Presentation for MBA.pdf
Ioannis Tzachristas Self-Presentation for MBA.pdfjtzach
 
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一Fs
 
Black and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfBlack and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfpadillaangelina0023
 
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量sehgh15heh
 
LinkedIn for Your Job Search in April 2024
LinkedIn for Your Job Search in April 2024LinkedIn for Your Job Search in April 2024
LinkedIn for Your Job Search in April 2024Bruce Bennett
 
AICTE PPT slide of Engineering college kr pete
AICTE PPT slide of Engineering college kr peteAICTE PPT slide of Engineering college kr pete
AICTE PPT slide of Engineering college kr peteshivubhavv
 
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Introduction to Political Parties (1).ppt
Introduction to Political Parties (1).pptIntroduction to Political Parties (1).ppt
Introduction to Political Parties (1).pptSohamChavan9
 
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...nitagrag2
 
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一A SSS
 
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证diploma001
 
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改yuu sss
 
Ch. 9- __Skin, hair and nail Assessment (1).pdf
Ch. 9- __Skin, hair and nail Assessment (1).pdfCh. 9- __Skin, hair and nail Assessment (1).pdf
Ch. 9- __Skin, hair and nail Assessment (1).pdfJamalYaseenJameelOde
 
ME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfaae4149584
 
Introduction to phyton , important topic
Introduction to phyton , important topicIntroduction to phyton , important topic
Introduction to phyton , important topicakpgenious67
 
Protection of Children in context of IHL and Counter Terrorism
Protection of Children in context of IHL and  Counter TerrorismProtection of Children in context of IHL and  Counter Terrorism
Protection of Children in context of IHL and Counter TerrorismNilendra Kumar
 

Recently uploaded (20)

AI ppt introduction , advandtage pros and cons.pptx
AI ppt introduction , advandtage pros and cons.pptxAI ppt introduction , advandtage pros and cons.pptx
AI ppt introduction , advandtage pros and cons.pptx
 
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
办理学位证(UoM证书)北安普顿大学毕业证成绩单原版一比一
 
Crack JAG. Guidance program for entry to JAG Dept. & SSB interview
Crack JAG. Guidance program for entry to JAG Dept. & SSB interviewCrack JAG. Guidance program for entry to JAG Dept. & SSB interview
Crack JAG. Guidance program for entry to JAG Dept. & SSB interview
 
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
办理学位证(纽伦堡大学文凭证书)纽伦堡大学毕业证成绩单原版一模一样
 
Ioannis Tzachristas Self-Presentation for MBA.pdf
Ioannis Tzachristas Self-Presentation for MBA.pdfIoannis Tzachristas Self-Presentation for MBA.pdf
Ioannis Tzachristas Self-Presentation for MBA.pdf
 
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一
定制(Waikato毕业证书)新西兰怀卡托大学毕业证成绩单原版一比一
 
Black and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdfBlack and White Minimalist Co Letter.pdf
Black and White Minimalist Co Letter.pdf
 
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量
原版定制copy澳洲查尔斯达尔文大学毕业证CDU毕业证成绩单留信学历认证保障质量
 
LinkedIn for Your Job Search in April 2024
LinkedIn for Your Job Search in April 2024LinkedIn for Your Job Search in April 2024
LinkedIn for Your Job Search in April 2024
 
AICTE PPT slide of Engineering college kr pete
AICTE PPT slide of Engineering college kr peteAICTE PPT slide of Engineering college kr pete
AICTE PPT slide of Engineering college kr pete
 
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
格里菲斯大学毕业证(Griffith毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Introduction to Political Parties (1).ppt
Introduction to Political Parties (1).pptIntroduction to Political Parties (1).ppt
Introduction to Political Parties (1).ppt
 
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...
Escorts Service Near Surya International Hotel, New Delhi |9873777170| Find H...
 
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一
办理学位证(Massey证书)新西兰梅西大学毕业证成绩单原版一比一
 
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证
原版定制卡尔加里大学毕业证(UC毕业证)留信学历认证
 
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
办澳洲詹姆斯库克大学毕业证成绩单pdf电子版制作修改
 
Ch. 9- __Skin, hair and nail Assessment (1).pdf
Ch. 9- __Skin, hair and nail Assessment (1).pdfCh. 9- __Skin, hair and nail Assessment (1).pdf
Ch. 9- __Skin, hair and nail Assessment (1).pdf
 
ME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdfME 205- Chapter 6 - Pure Bending of Beams.pdf
ME 205- Chapter 6 - Pure Bending of Beams.pdf
 
Introduction to phyton , important topic
Introduction to phyton , important topicIntroduction to phyton , important topic
Introduction to phyton , important topic
 
Protection of Children in context of IHL and Counter Terrorism
Protection of Children in context of IHL and  Counter TerrorismProtection of Children in context of IHL and  Counter Terrorism
Protection of Children in context of IHL and Counter Terrorism
 

Android wear notes

  • 1. [TUTORIAL] How to develop Android Wear apps for Beginners. Part 1 - Setup AndroidWear apps tutorial androidwear dev calmarj Jan 16 13 Android Wear is a new version of the Android system designed specifically for wearables , which was announced by Google in march 2014. Currently lots of devices running on Android Wear were released, including well designed Moto 360 and Gear Live by Samsung.But still, amount of applications using all the benefits of Android Wear in Google Play is considerably small. In this tutorial I'm going to show you how to create apps for Android Wear from Scratch. Set up the Android development environment Studying every new technology begins with launching "Hello World" example. But first you need to set your development environment.  JDK – development kit for Java programming language  Android Studio – IDE to make our Android apps  Android SDK – special development kit for Android development  Android Virtual Device – emulator to test our apps JDK Android applications are usually developed in Java programming language using the Software Development Kit. That's why we need to download SDK for working with Java. 1) Download the Java SE Development Kit (JDK) from this site:http://www.oracle.com/technetwork/java/javase/downloads/175 2) Click Download from the JDK section of the 'Java Platform, Standard Edition' table. 3) Install the JDK environment with default setting You can find more detailed instruction here: http://www.oracle.com/technetwork/java/javase/index-137561.html24
  • 2. Android Studio Google developed its own environment for Android applications with lots of perks for development. You can download it here: http://developer.android.com/sdk/index.html190 Here are steps for installation Android Studio on Windows and Linux. For MAC they are pretty similar. Installation for Windows: 1) Download and run **android-studio-bundle-(your version).exe**, then click on the "Next" button. 2) Leave all default settings untouched and click the **"Next"** button.
  • 3. 3) Agree with all license agreements and click the "Next" button.
  • 4.
  • 5. 4) Choose a path where to install Android Studio and Android SDK.(**Please note**: use only ASCII characters - english letters) 5) Android SDK includes Android device emulator. It means you can use emulator when you don't have Android Wear Watch. I'm going to use emulator in this tutorial. Emulator for Windows requires installation of the Intel Hardware Accelerated Execution Manager (Intel HAXM). In this window you can adjust the amount of memory avaliable for HAXM. Leave it recommended and click the "Next" button.
  • 6. 6) Select or create a folder in which you would like to create the program's shortcut.
  • 7. 7) Now the installation of Android Studio begins. Required time depends on your computer. For me it took about half an hour. Next click on the «Finish» button.
  • 8. 2q3B44znmHQ.jpg797x606 62.5 KB Installation for Linux: Download android-studio-ide-(your-version)-linux.zip. Unzip it (Please note: don't use non ASCII characters in istallation path). Open terminal, go to Android Studio folder, then go the bin folder and runstudio.sh script. These steps you can see in the screenshot for my system - Ubuntu 14.10.
  • 9. qf46TCrt7zY.jpg722x462 35.4 KB Android SDK The start window of Android Studio should appear after the installation.(click on created shortcut if the start window did not appear(for Windows) or run script studio.sh(for Linux)). Android platform includes systems for phones, tvs and watches, so we need to download special development toolkit for Android Wear. Click on"Configure" button and turn on SDK Manager.
  • 10. TEPyZZOW_eI.jpg807x617 51.4 KB If you want to test your applications on emulator, you also need to download virtual images, (Intel x86 images will work faster). I recommend you to download samples for SDK, we are going to study them later. If you want to test your application for different Android Wear versions, you need to download SDK and virtual image for Android 4.4. Don't change default settings (so USB driver will be installed. It maintains correct plugging a device into a computer.) Next click on "Install" button and agree with licence agreement.
  • 11. H7Ui-u42yjQ.jpg531x807 115 KB SDK installation can take a while(about couple of hours). Creating new project Having downloaded SDK, we move to creating your first Android Wear application. More precisely we are going to study one of the samples provided by Google. 1. Run Android Studio and Click Option «Import an Android code sample»
  • 12. l71AnjZ637E.jpg797x606 65.4 KB 2. Type "Wear" in the searching box and choose "Skeleton Wearable App". Then click on the "Next"button.
  • 13. r5MLKA-KOOE.jpg807x492 38.4 KB 3. Now you can choose the name and path of your project. (Please note: don't change it unless there are non ASCII characters) and click "Finish":
  • 14. ISlD7htljss.jpg807x489 31.2 KB 4. Wait till the project is downloaded and built. Please notice: If you can see the error like: "Failed to import new Gradle project: failed to find Build Tools revision xx.xx.xx " then you don't have the latest version of the build tool. One of the main benefits of Android Studio is that it can do menial work. Just click on "Install and sync project". Your first project is done. Now we need a watch to test an application. You can use an emulator if you don't have a watch. Set up an Android Wear Virtual Device(AVD) 1. Click Tools>Android>AVD Manager or click on corresponding button in the panel:
  • 15. cne4wz9gQVY.jpg807x489 30.2 KB 2. Click Create Virtual Device and after that choose category Wear in List and select Square or Round Android Wear(you can see that Iselected Round) and click "Next":
  • 16. 1Bf0CYYLM2w.jpg807x492 38 KB 3. Choose Android Wear version(I chose Lollipop for this tutorial, because it's the latest version and most user-friendly, in my opinion.) and click "Next":
  • 17. WToOaF9mxUU.jpg807x484 41.4 KB 4. Now you can change name of your AVD (I named it Smartwatch tutorial),choice of screen or firmware. Also you can turn on Host GPU (better do it, that way the emulator will use computer video card for rendering). You can also turn on "Store a snapshot for faster startup". It lets AVD Manager to save system state on hard disk after you finish working with emulator. It allows you to run the emulator faster, because any Android emulator runs really slow(except third-party emulators, like Genomytion) After you finish setting click on the "Finish" button.
  • 18. lsqjJs44rGk.jpg807x484 39.7 KB 5. Emulator created successfully.
  • 19. fr9lLTI-Vck.jpg807x431 25.4 KB 6. Now you can run the emulator, it can take a while. After that you can study how to work with Android Wear following instructions.
  • 20. Run the app We need to set startup configuration to run this app. Click a field left from "Run", there you can "Edit Configuration" or choose module to run.Choose "Wearable"(because we are going to run the application for watches) and click on "Run". Now we can see the list of devices ready for the application to be installed on. Choose the emulator we created early. (you need to run the emulator first.)
  • 21. xzjRWgC4Jo8.jpg807x401 34.7 KB After the application is started click on "Show Notification" button, and application should show you sample notifications. You can see that this sample is not adapted for round shape of the watches. You have to avoid
  • 22. this while developing applications for Android Wear. Sum up In this tutorial we set up our system for development applications and ran our first Android Wear application. In next tutorial I will show you how to connect your watches(or emulator) with your phone(or tablet). Please don't hesitate to ask any questions and leave feedback. Thank you for reading. Building Apps for Wearables These classes teach you how to build notifications in a handheld app that are automatically synced to wearables as well as how to build apps that run on wearables.
  • 23. Note: For more information about the APIs used in these training classes, see the Wear API reference documentation. 1. Adding Wearable Features to Notifications How to build handheld notifications that are synced to and look great on wearables. 1. Creating a Notification 2. Receiving Voice Input in a Notification 3. Adding Pages to a Notification 4. Stacking Notifications 2. Creating Wearable Apps How to build apps that run directly on wearables. 1. Creating and Running a Wearable App 2. Creating Custom Layouts 3. Keeping Your App Visible 4. Adding Voice Capabilities 5. Packaging Wearable Apps 6. Debugging over Bluetooth 3. Creating Custom UIs How to create custom user interfaces for wearable apps. 1. Defining Layouts 2. Creating Cards 3. Creating Lists
  • 24. 4. Creating a 2D Picker 5. Showing Confirmations 6. Exiting Full-Screen Activities 4. Sending and Syncing Data How to sync data between handhelds and wearables. 1. Accessing the Wearable Data Layer 2. Syncing Data Items 3. Transferring Assets 4. Sending and Receiving Messages 5. Handling Data Layer Events 5. Creating Watch Faces How to create watch faces for wearables. 1. Designing Watch Faces 2. Building a Watch Face Service 3. Drawing Watch Faces 4. Showing Information in Watch Faces 5. Creating Interactive Watch Faces 6. Providing Configuration Activities 7. Addressing Common Issues 8. Optimizing Performance and Battery Life 6. Detecting Location
  • 25. How to detect location data on Android Wear devices. [TUTORIAL] How to develop Android Wear apps for Beginners. Part 2 - Connect Android Wear with handheld device AndroidWear androidwear tutorial dev 1 / 4 calmarj Jan 17 9 In my previous tutorial I told you how to set your development environment for Android Wear, create and run a project from Google samples, and how to create Android Wear (AVD). You can read it here: www.smartwatch.me [TUTORIAL] How to develop Android Wear apps for Beginners. Part 1 - Setup Android Wear is a new version of the Android system designed specifically for wearables , which was announced by Google in march 2014. Currently lots of devices running on Android Wear were released, including well designed Moto 360 and Gear Live by Samsung.But still, amount of applications using all the benefits of Android Wear in Google Play is considerably small. In this tutorial I'm going to show you how to create apps for Android Wear from Scratch. Set up the Android development en... You can develop not only Wearable apps with Android Wear SDK, but also you can create apps for smartphones and tablets (we are going to refer to them as handheld devices) that support output of data on Android Wear. We are going to create this kind of application in next tutorial. In this tutorial we are going to learn how to connect your Android Wear emulator with your handheld device. Set up the handheld device
  • 26. 1. Download the Android Wear companion app on your handheld device from Google Play. cJPlJ8Mp5L0.jpg1280x769 83 KB 2. Run the app and allow it access to the location of the device. 3. Enable USB debuging on your device. On Android 4.0 and newer, you can find in here: Setting > Developer options. Please notice: on Android 4.2 and newer, Developer options is hidden by default. You can make it available like this: go toSettings > About phone and tap Build number 7 times.
  • 27. J_oR-0xbGwc.jpg1280x769 54.2 KB 4. Connect your handheld device to the computer with a USB cable 5. Check that your device is connected. For this you can use Android Debugs Bridge(ADB) - an important command line tool for Android development. For Windows: Run command prompt(cmd command in the run menu). Go to the Android SDK folder using cdcommand. Then go to platform tools folder. Now use command: adb.exe devices. That command will list of all plugged Android devices. For Linux: Open terminal and run adb command with “device” flag. Iwill show how to do it on my system: It showed that my Nexus 7 is attached. Please notice: If your list is empty, wait till USB driver is installed.
  • 28. If your USB driver is installed and list is still empty, use this instruction,(this can occur if you have Windows 8):http://stackoverflow.com/questions/21408674/adb-error-device-not-found40 If you want to know more about adb you can check Google documentation:http://developer.android.com/tools/help/adb.html13 or read very good tutorial from Vogella: http://www.vogella.com/tutorials/AndroidCommandLine/article.html16 Create AVD You can read in my previous tutorial how to create Android Watch emulator (link in the beginning of this post) Connect handheld device with AVD 1. Forward the AVD's communication port to the connected handheld device. You can do it by following command with adb: Please notice: you need to do it each time you connect hadheld device. 2. Run Android Wear app on handheld device, go to Settings and click on "Connect to emulator". (AVD has to be turned on) 3. Now AVD and handheld device are connected. You can send notifications, change the appearance of the watch. Go to Settings and choose "Demo cards". Here you can experiment with different demo cards.The cards you select appear as notifications on the home screen of the emulator. For example, how much time you need to get to home or the
  • 29. current weather. Sum up In this tutorial we connected Android Wear emulator with handheld device and sent sample information to emulator In next tutorial I will show you how to create your first app for handheld device, which will sent custom notifications on watches. Please don't hesitate to ask any questions and leave feedback. Thank you for reading. Continue reading to Part 3 - Creating your first app! www.smartwatch.me [TUTORIAL] How to develop Android Wear apps for Beginners. Part 3 - Create your first app "Hello World" Studying new programming language always begins with "Hello World" program. We are going to do the same and we will create an application for handheld devices that will send "Hello World" notification to an Android Wear Device. In my previous tutorials you can read how to set up development environment, create Android Wear emulator and connect it with your handheld device: Firstly, we are going to look at the program structure in Android. Android applications usually consist of the set of A...