際際滷

際際滷Share a Scribd company logo
Android Workshop
Explore, Learn and Design
By Sagar Patel
Why an EC fellow should develop app
 Embedded Engineer
 Hardware optimization for Application life
cycle
 Link between pure Hardware engineer and
pure IT engineer
 Entrepreneurs are focusing on Mobile
Application
Why should I go for Android?
Numbers
 Worldwide 700 million smartphones sold in
2012.
 0.5 billion Smartphones belong to Android
with around 70% market share globally.
Where to look?
How android phone works?

Input
Touch

Output
View
Android MVC
Development
 I/O Interface or User Interface
XML Layout
 Database update
XML Resources
 Controller
Java Classes
 Layout between Java
Android Manifest file
Lets Build First Application
Tools required
 Android SDK (Software Development Kit)
http://developer.android.com/sdk/index.html

 ADT Plug In
http://developer.android.com/tools/sdk/eclipseadt.html
Eclipse
 Start new project by File -> New -> Android
Application Project.
 Select the Appropriate API version and
package name for your project.
 Click on Next. Again click on next.
 Select the launcher icon if you want.
 For Activity select Blank Activity and click on
next and then finish.
What do all this file do?
 MainActivity
 Starting point of your application
 Responds to events, clicks and
switches between activities

 Layout Files
 GUI for your application
 Keeps Database

 Android Manifest
 Keeps track of Layouts and Java files
 It contains the permission for other
interfaces like camera, memory card,
Bluetooth, GPS, Internet Access.
Create an Android Virtual Device
 Click on AVD Icon :
 Windows -> AVD Manager -> New.
Android workshop
Android Phone can be used
(Much Faster)
Running your First App

 Click the project folder so that it is highlighted (very
important . You must run your app from here)
 Run as an Android App
 The app will install on your android virtual device
 Find your app name by clicking the apps icon and start
it
App on Emulator
Lets Hack It
 Changing the Hello World by Welcome
Developers
Adding Interactions (Button)
 Button is used for input from User
 It is designed in XML
 Lets Add button to start new Activity
Adding some Maths
Nice Job!!!
 Made our First Application.
 Test app on Virtual Device.
 Directly debug on mobile.
Acknowledgement
 Special Thanks for Prof. Akash Macwan
 Thanks to Prasann Shukla
Android Help
 Developer.android.com
 TheNewBoston open Source tutorials on
Android
Contact
 Mobile: +91 89054 50243
 Sagarpatel.9556@gmail.com
 Blog: Creat-Tricks.blogspot.com
 YT Channel : Sagar Patel
Thank You

More Related Content

Android workshop

  • 1. Android Workshop Explore, Learn and Design By Sagar Patel
  • 2. Why an EC fellow should develop app Embedded Engineer Hardware optimization for Application life cycle Link between pure Hardware engineer and pure IT engineer Entrepreneurs are focusing on Mobile Application
  • 3. Why should I go for Android?
  • 4. Numbers Worldwide 700 million smartphones sold in 2012. 0.5 billion Smartphones belong to Android with around 70% market share globally.
  • 6. How android phone works? Input Touch Output View
  • 8. Development I/O Interface or User Interface XML Layout Database update XML Resources Controller Java Classes Layout between Java Android Manifest file
  • 9. Lets Build First Application
  • 10. Tools required Android SDK (Software Development Kit) http://developer.android.com/sdk/index.html ADT Plug In http://developer.android.com/tools/sdk/eclipseadt.html
  • 11. Eclipse Start new project by File -> New -> Android Application Project. Select the Appropriate API version and package name for your project. Click on Next. Again click on next. Select the launcher icon if you want. For Activity select Blank Activity and click on next and then finish.
  • 12. What do all this file do? MainActivity Starting point of your application Responds to events, clicks and switches between activities Layout Files GUI for your application Keeps Database Android Manifest Keeps track of Layouts and Java files It contains the permission for other interfaces like camera, memory card, Bluetooth, GPS, Internet Access.
  • 13. Create an Android Virtual Device Click on AVD Icon : Windows -> AVD Manager -> New.
  • 15. Android Phone can be used (Much Faster)
  • 16. Running your First App Click the project folder so that it is highlighted (very important . You must run your app from here) Run as an Android App The app will install on your android virtual device Find your app name by clicking the apps icon and start it
  • 18. Lets Hack It Changing the Hello World by Welcome Developers
  • 19. Adding Interactions (Button) Button is used for input from User It is designed in XML Lets Add button to start new Activity
  • 21. Nice Job!!! Made our First Application. Test app on Virtual Device. Directly debug on mobile.
  • 22. Acknowledgement Special Thanks for Prof. Akash Macwan Thanks to Prasann Shukla
  • 23. Android Help Developer.android.com TheNewBoston open Source tutorials on Android
  • 24. Contact Mobile: +91 89054 50243 Sagarpatel.9556@gmail.com Blog: Creat-Tricks.blogspot.com YT Channel : Sagar Patel