android essential tools
DESCRIPTION
TRANSCRIPT
![Page 1: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/1.jpg)
Android Essen+al Tools
Version 2012-‐08-‐19 (Android 4.1) Jussi Pohjolainen
Tampere University of Applied Sciences
![Page 2: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/2.jpg)
Essen+al Tools • android – To create/update Android projects and modify Android Virtual Devices
• Android Emulator – To run your app
• adb (Android Debug Bridge) – Interface between emulator or device. Install apps, shell the device, issue commands
• Ant – To compile and build your apps
• Keytool and Jarsigner – To sign your .apk package
![Page 3: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/3.jpg)
Crea+ng Project: Targets
![Page 4: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/4.jpg)
Crea+ng Project
![Page 5: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/5.jpg)
Result
![Page 6: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/6.jpg)
Building
• For debug: – ant debug
• For release – ant release
• Release version must signed using keytool and jarsigner
![Page 7: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/7.jpg)
Building
![Page 8: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/8.jpg)
Android Virtual Devices
• To run the emulator, you must configure android virtual device
• To open AVD, use command android avd • Click new to create new AVD
![Page 9: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/9.jpg)
![Page 10: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/10.jpg)
Star+ng the Emulator
• In avd, click start Or • use emulator –avd youravd command in command line
![Page 11: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/11.jpg)
Installing App
• The compiled and packaged applica+on can be found in the bin/ directory
• In debug – mode, the app cannot be distributed in Google Play, but it can be installed on device or emulator
• To see list of devices a9ached to your computer (devices, emulators), use command adb devices
• adb? = Android Debug Bridge, command line tol for communica+ng between devices and emulators
![Page 12: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/12.jpg)
![Page 13: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/13.jpg)
Installing
• You need to use the adb app to install the app • If you have only one device aZached, the following command is enough: – adb install HelloWorld-debug.apk
• If you have several devices aZached, then you must specify the target – adb –s emulator-5554 install HelloWorld-debug.apk
![Page 14: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/14.jpg)
Installing
![Page 15: Android Essential Tools](https://reader034.vdocuments.site/reader034/viewer/2022051323/5474967ab4af9fbe0a8b586e/html5/thumbnails/15.jpg)