SlideShare una empresa de Scribd logo
1 de 33
GOING MAD WITH ANDROID

      presentation by




       TSCS (The School of Creative Sciences)
I am MAD.
                                 I earn on my own.
                                   Besides MAD
                                   is cool & fun!




MAD IS “MOBILE APPS DEVELOPER”
          TSCS (The School of Creative Sciences)
ANDROID
          TSCS (The School of Creative Sciences)
Future of Android
• Android is a mobile phone operating system powered by
  Google

• Nearly every device in your house, from your television to
  your refrigerator, is going to be networked and could very well
  be Android-powered”, says Google Chairman Eric Schmidt

• Android had a worldwide smart-phone market share of 75%
  by the third quarter of 2012, with 500 million devices
  activated in total and 1.3 million activations per day



                        TSCS (The School of Creative Sciences)
MAKING AN APP ON ANDROID
          TSCS (The School of Creative Sciences)
1.   Mobile Application Development (MAD)
2.   Intro to Android platform
3.   Platform architecture
4.   Application Framework & API
5.   Application building blocks
6.   Development tools
7.   Hello Android
8.   Porting application to Mobile
SCOPE OF THIS PPT
                  TSCS (The School of Creative Sciences)
Computer
                                                                    Fax



                                                                            Radio

  Email



                                                                          Music player

          Word processor               Credit cards                                      7




FEW REASONS TO GO MAD
                           TSCS (The School of Creative Sciences)
Email

                             Computer

                                                              Fax




                                 Word processor

                                                            Music player


                     Credit cards
                                                    Radio


LET YOUR SMARTPHONE TAKE CARE
OF ALL THIS MADNESS
          TSCS (The School of Creative Sciences)
What is Android
   Open software platform for mobile development

   A complete stack – OS, Middleware, Applications

   An Open Handset Alliance (OHA) project

   Powered by Linux operating system

   Fast application development in Java

   Open source under the Apache 2 license

                        TSCS (The School of Creative Sciences)
TSCS (The School of Creative Sciences)
Android APIs
•   android.util                          •    android.view

•   android.os                            •    android.widget

•   android.graphics                      •    com.google.android.maps
                                               android.app
•   android.text
                                          •    android.telephony
•   android.database
                                          •    android.webkit
•   android.content
                        TSCS (The School of Creative Sciences)
Application Building Blocks
   Activity

   IntentReceiver

   Service

   ContentProvider




                      TSCS (The School of Creative Sciences)
Activities
   Typically correspond to one UI screen

   But, they can:
     Be faceless

     Be in a floating window

     Return a value

     Activity refers to (J)Frame in Swing




                          TSCS (The School of Creative Sciences)
Intents
   Think of Intents as a verb and object; a description of what
    you want done
     E.g. VIEW, CALL, PLAY etc.



   System matches Intent with Activity that can best provide the
    service

   Activities and IntentReceivers describe what Intents they can
    service



                         TSCS (The School of Creative Sciences)
Intent Receivers
   Components that respond to broadcast ‘Intents’

   Way to respond to external notification or alarms

   Apps can invent and broadcast their own Intent




                         TSCS (The School of Creative Sciences)
Services
   Faceless components that run in the background
     E.g. music player, network download etc…




                        TSCS (The School of Creative Sciences)
Content Providers
   Enables sharing of data across applications
     E.g. address book, photo gallery



   Provides uniform APIs for:
     querying

     delete, update and insert.



   Content is represented by URI and MIME type




                         TSCS (The School of Creative Sciences)
DIFFERENT LAYOUTS                  HIERARCHY OF SCREEN ELEMENTS
   Linear Layout
  Absolute Layout
    Table Layout




ANDROID USER INTERFACES
                TSCS (The School of Creative Sciences)
Activities in Android refers almost to a (J)Frame in Swing
Views in Android refers to (J)Components in Swing
TextViews in Android refers to a (J)Labels in Swing
EditTexts in Android refers to a (J)TextFields in Swing
Buttons in Android refers to a (J)Buttons in Swing


     COMPARING ANDROID UI ELEMENTS TO SWING
     UI ELEMENTS
                            TSCS (The School of Creative Sciences)
<application>
Root element containing declarations of the application-level components contained in the
package. This element can also include global and/or default attributes for the application,
such as a label, icon,theme, required permission, etc.Quantity: 0 or 1.




<activity>
An Activity is the primary thing for an application to interact with the user. The initial screen the
user sees when launching an application is an activity, and most other screens they use will be
implemented as separate activities declared with additional activity tags.




<intent-filter>
Declares what kind of Intents a component supports. In addition to the various kinds of
values that can be specified under this element, attributes can be given here to supply a
unique label, icon, and other information for the action being described.




                                       TSCS (The School of Creative Sciences)
<action>
An action-type that the component supports. Example:




<category>
A category-type that the component supports. Example:




Some other Tags Available……
<meta-data>
<receiver>
<service>
<provider>



                                   TSCS (The School of Creative Sciences)
    Download and Install the
                                     Android SDK and Test the
                                     Emulator

                                    Installing JDK and JRE(1.5 or
                                     above)

                                    Install Eclipse

                                    Install ADT plugin for Eclipse




APPLICATION DEVELOPMENT STEPS
           TSCS (The School of Creative Sciences)
New > Project…




                   Select Android project in wizard menu




 APPLICATION DEVELOPMENT CNTD.
                 TSCS (The School of Creative Sciences)
APPLICATION DEVELOPMENT CNTD.
          TSCS (The School of Creative Sciences)
Main Activity>>




Main.xml>>




       APPLICATION DEVELOPMENT CNTD.
                  TSCS (The School of Creative Sciences)
AndroidManifest.xml>>




      APPLICATION DEVELOPMENT CNTD.
                        TSCS (The School of Creative Sciences)
>>Running Your First Application




APPLICATION DEVELOPMENT CNTD.
            TSCS (The School of Creative Sciences)
Output in the emulator




APPLICATION DEVELOPMENT CNTD.
           TSCS (The School of Creative Sciences)
UIs using Java way




     APPLICATION DEVELOPMENT CNTD.
                     TSCS (The School of Creative Sciences)
Porting Applications to Mobile
   Resource files are bundled to .apk file archive

   Bundled by aapt tool

   One .apk file archive is a Single application




                           TSCS (The School of Creative Sciences)
Interesting things to do
   Android is open source

   Opportunities for researchers

   Get the source, compile and update the device image




                        TSCS (The School of Creative Sciences)
   http://developer.android.com
   http://code.google.com/android
   http://anddev.org

REFERENCES
                         TSCS (The School of Creative Sciences)
Thank You




TSCS (The School of Creative Sciences)

Más contenido relacionado

Similar a Going mad with android

Watson on Bluemix
Watson on BluemixWatson on Bluemix
Watson on Bluemix
IBM
 
RT Lab Android Application
RT Lab Android ApplicationRT Lab Android Application
RT Lab Android Application
Praahas Amin
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdf
AbdullahMunir32
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdf
AbdullahMunir32
 
Android_Workshop
Android_WorkshopAndroid_Workshop
Android_Workshop
Senthil ACS
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 

Similar a Going mad with android (20)

B041130610
B041130610B041130610
B041130610
 
Demo class on android development
Demo class on android developmentDemo class on android development
Demo class on android development
 
Watson on Bluemix
Watson on BluemixWatson on Bluemix
Watson on Bluemix
 
Watson on bluemix
Watson on bluemixWatson on bluemix
Watson on bluemix
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android introduction
Android introductionAndroid introduction
Android introduction
 
Android overview
Android overviewAndroid overview
Android overview
 
Introduction to Mobile Development
Introduction to Mobile DevelopmentIntroduction to Mobile Development
Introduction to Mobile Development
 
android level 1
android level 1android level 1
android level 1
 
RT Lab Android Application
RT Lab Android ApplicationRT Lab Android Application
RT Lab Android Application
 
Automated card recharge android application
Automated card recharge android applicationAutomated card recharge android application
Automated card recharge android application
 
Automated card recharge android application
Automated card recharge android applicationAutomated card recharge android application
Automated card recharge android application
 
Automated card recharge android application
Automated card recharge android applicationAutomated card recharge android application
Automated card recharge android application
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdf
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
How to become an android developer
How to become an android developerHow to become an android developer
How to become an android developer
 
Mobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdfMobile Application Development Lecture 05 & 06.pdf
Mobile Application Development Lecture 05 & 06.pdf
 
Android_Workshop
Android_WorkshopAndroid_Workshop
Android_Workshop
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
 
Mobile app
Mobile appMobile app
Mobile app
 

Going mad with android

  • 1. GOING MAD WITH ANDROID presentation by TSCS (The School of Creative Sciences)
  • 2. I am MAD. I earn on my own. Besides MAD is cool & fun! MAD IS “MOBILE APPS DEVELOPER” TSCS (The School of Creative Sciences)
  • 3. ANDROID TSCS (The School of Creative Sciences)
  • 4. Future of Android • Android is a mobile phone operating system powered by Google • Nearly every device in your house, from your television to your refrigerator, is going to be networked and could very well be Android-powered”, says Google Chairman Eric Schmidt • Android had a worldwide smart-phone market share of 75% by the third quarter of 2012, with 500 million devices activated in total and 1.3 million activations per day TSCS (The School of Creative Sciences)
  • 5. MAKING AN APP ON ANDROID TSCS (The School of Creative Sciences)
  • 6. 1. Mobile Application Development (MAD) 2. Intro to Android platform 3. Platform architecture 4. Application Framework & API 5. Application building blocks 6. Development tools 7. Hello Android 8. Porting application to Mobile SCOPE OF THIS PPT TSCS (The School of Creative Sciences)
  • 7. Computer Fax Radio Email Music player Word processor Credit cards 7 FEW REASONS TO GO MAD TSCS (The School of Creative Sciences)
  • 8. Email Computer Fax Word processor Music player Credit cards Radio LET YOUR SMARTPHONE TAKE CARE OF ALL THIS MADNESS TSCS (The School of Creative Sciences)
  • 9. What is Android  Open software platform for mobile development  A complete stack – OS, Middleware, Applications  An Open Handset Alliance (OHA) project  Powered by Linux operating system  Fast application development in Java  Open source under the Apache 2 license TSCS (The School of Creative Sciences)
  • 10. TSCS (The School of Creative Sciences)
  • 11. Android APIs • android.util • android.view • android.os • android.widget • android.graphics • com.google.android.maps android.app • android.text • android.telephony • android.database • android.webkit • android.content TSCS (The School of Creative Sciences)
  • 12. Application Building Blocks  Activity  IntentReceiver  Service  ContentProvider TSCS (The School of Creative Sciences)
  • 13. Activities  Typically correspond to one UI screen  But, they can:  Be faceless  Be in a floating window  Return a value  Activity refers to (J)Frame in Swing TSCS (The School of Creative Sciences)
  • 14. Intents  Think of Intents as a verb and object; a description of what you want done  E.g. VIEW, CALL, PLAY etc.  System matches Intent with Activity that can best provide the service  Activities and IntentReceivers describe what Intents they can service TSCS (The School of Creative Sciences)
  • 15. Intent Receivers  Components that respond to broadcast ‘Intents’  Way to respond to external notification or alarms  Apps can invent and broadcast their own Intent TSCS (The School of Creative Sciences)
  • 16. Services  Faceless components that run in the background  E.g. music player, network download etc… TSCS (The School of Creative Sciences)
  • 17. Content Providers  Enables sharing of data across applications  E.g. address book, photo gallery  Provides uniform APIs for:  querying  delete, update and insert.  Content is represented by URI and MIME type TSCS (The School of Creative Sciences)
  • 18. DIFFERENT LAYOUTS HIERARCHY OF SCREEN ELEMENTS Linear Layout Absolute Layout Table Layout ANDROID USER INTERFACES TSCS (The School of Creative Sciences)
  • 19. Activities in Android refers almost to a (J)Frame in Swing Views in Android refers to (J)Components in Swing TextViews in Android refers to a (J)Labels in Swing EditTexts in Android refers to a (J)TextFields in Swing Buttons in Android refers to a (J)Buttons in Swing COMPARING ANDROID UI ELEMENTS TO SWING UI ELEMENTS TSCS (The School of Creative Sciences)
  • 20. <application> Root element containing declarations of the application-level components contained in the package. This element can also include global and/or default attributes for the application, such as a label, icon,theme, required permission, etc.Quantity: 0 or 1. <activity> An Activity is the primary thing for an application to interact with the user. The initial screen the user sees when launching an application is an activity, and most other screens they use will be implemented as separate activities declared with additional activity tags. <intent-filter> Declares what kind of Intents a component supports. In addition to the various kinds of values that can be specified under this element, attributes can be given here to supply a unique label, icon, and other information for the action being described. TSCS (The School of Creative Sciences)
  • 21. <action> An action-type that the component supports. Example: <category> A category-type that the component supports. Example: Some other Tags Available…… <meta-data> <receiver> <service> <provider> TSCS (The School of Creative Sciences)
  • 22. Download and Install the Android SDK and Test the Emulator  Installing JDK and JRE(1.5 or above)  Install Eclipse  Install ADT plugin for Eclipse APPLICATION DEVELOPMENT STEPS TSCS (The School of Creative Sciences)
  • 23. New > Project… Select Android project in wizard menu APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 24. APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 25. Main Activity>> Main.xml>> APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 26. AndroidManifest.xml>> APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 27. >>Running Your First Application APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 28. Output in the emulator APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 29. UIs using Java way APPLICATION DEVELOPMENT CNTD. TSCS (The School of Creative Sciences)
  • 30. Porting Applications to Mobile  Resource files are bundled to .apk file archive  Bundled by aapt tool  One .apk file archive is a Single application TSCS (The School of Creative Sciences)
  • 31. Interesting things to do  Android is open source  Opportunities for researchers  Get the source, compile and update the device image TSCS (The School of Creative Sciences)
  • 32. http://developer.android.com  http://code.google.com/android  http://anddev.org REFERENCES TSCS (The School of Creative Sciences)
  • 33. Thank You TSCS (The School of Creative Sciences)