SlideShare a Scribd company logo
1 of 38
Download to read offline
Session #2

05-02-2012   http://www.iwillstudy.com/group/android
Producing an Android App
            javac
Java code             Byte code

                                         dx     Dalvik
  .java                  .class
                                                 exe

                                              classes.dex       aapt


                         Byte code              <xml>

                    Other .class files    AndroidManifest.xml          .apk

                                                    <str
                                                    >


                                               Resources
Various Layouts
Various Widgets
Resources
Resource Types(/res/)

   Animation Resources (/anim or /drawable)
   Color State List Resource (/color)
   Drawable Resources(/drawable)
   Layout Resource(/layout)
   Menu Resource(/menu)
   String Resources(/values)
   Style Resource(/values)
   More Resource Types(/values)
Screen Characteristic
Screen
                 Qualifier   Description
characteristic
                 small       Resources for small size screens.

                 normal      Resources for normal size screens. (This is the baseline size.)
Size
                 large       Resources for large size screens.
                 xlarge      Resources for extra large size screens.

                 land        Resources for screens in the landscape orientation (wide aspect ratio).
Orientation
                 port        Resources for screens in the portrait orientation (tall aspect ratio).
                             Resources for screens that have a significantly taller or wider aspect ratio
                 long        (when in portrait or landscape orientation, respectively) than the baseline
Aspect                       screen configuration.

ratio            notlong
                             Resources for use screens that have an aspect ratio that is similar to the
                             baseline screen configuration.
Screen Characteristic
          ldpi    Resources for low-density (ldpi) screens (~120dpi).
                  Resources for medium-density (mdpi) screens
          mdpi
                  (~160dpi). (This is the baseline density.)
          hdpi    Resources for high-density (hdpi) screens (~240dpi).
                  Resources for extra high-density (xhdpi) screens
          xhdpi
                  (~320dpi).
Density           Resources for all densities. These are density-
                  independent resources. The system does not scale
          nodpi
                  resources tagged with this qualifier, regardless of the
                  current screen's density.
                  Resources for screens somewhere between mdpi and
          tvdpi   hdpi; approximately 213dpi. This is not considered a
                  "primary" density group.
Fragmentation
   res/layout/my_layout.xml              // layout for normal screen
    size ("default")
    res/layout-small/my_layout.xml        // layout for small screen size
    res/layout-large/my_layout.xml        // layout for large screen size
    res/layout-xlarge/my_layout.xml       // layout for extra large screen
    size
    res/layout-xlarge-land/my_layout.xml // layout for extra large in land.
    orientation





    res/drawable-mdpi/my_icon.png          // bitmap for medium density
    res/drawable-hdpi/my_icon.png          // bitmap for high density
    res/drawable-xhdpi/my_icon.png         // bitmap for extra high density
Standard Asset Sizes (in Pixels), for Generalized Screen
Icon Type
                   Densities

                   Low density screen   Medium density      High density screen
                   (ldpi)               screen (mdpi)       (hdpi)

Launcher           36 x 36 px           48 x 48 px          72 x 72 px

Menu               36 x 36 px           48 x 48 px          72 x 72 px

Status Bar         12w x 19h px         16w x 25h px        24w x 38h px
(Android 2.3 and   (preferred, width    (preferred, width   (preferred, width
later)             may vary)            may vary)           may vary)

Status Bar
(Android 2.2 and   19 x 19 px           25 x 25 px          38 x 38 px
below)
Tab                24 x 24 px           32 x 32 px          48 x 48 px

Dialog             24 x 24 px           32 x 32 px          48 x 48 px

List View          24 x 24 px           32 x 32 px          48 x 48 px
Asset Type         Prefix           Example

Icons              ic_              ic_star.png
                                    ic_launcher_calendar
Launcher icons     ic_launcher
                                    .png
Menu icons         ic_menu          ic_menu_archive.png
                                    ic_stat_notify_msg.p
Status bar icons   ic_stat_notify
                                    ng
Tab icons          ic_tab           ic_tab_recent.png

Dialog icons       ic_dialog        ic_dialog_info.png
Options Menu
Context Menu
Create a new .xml file in your drawable folder
(or drawable-mdpi folder) called gradient.xml, with the following code:

<?xml version="1.0" encoding="utf-8"?>
<shape
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle">
  <gradient
    android:angle="0"
    android:startColor="#000000"
    android:endColor="#000000"
    android:centerColor="#97CF4D" />
</shape>
Possibilities
Augmented Campus Reality       Web scraping
 • camera + maps + compass     • news filters
   = heads up info             • sport scores
                               • news eliminators
Games
• multi-player (bluetooth,     Distributed
  wifi, cell)                  computing?
• location-based (scavenger     • 10,000 phones all
  hunt)                           donating their idle
                                  time
Custom overlays for maps
 • weather, traffic, friends   Shared whiteboard
Android Controls
   Rss Reader
   Contacts Manager
   Weather Application
   Multimedia Player
   Near Me
   Picturesque
   Stock Market Application
   Plan My Month
   Learn English Quick App
   Rate Music App
Rss Reader Screen1



                     Item List (ListView)




                     Button
Rss Reader Screen2




                     Options Menu
Contact Manager Screen1


                          Buttons (ImageView)




Groups List
(Expandable Lists -
Custom Adapter)



                          Options Menu
Contact Manager Screen2




PopUp (AlertDialog)
                          Input Area (EditText)
Contact Manager Screen3
                            Input (Search EditText)



                                Search Action
Search Box(Search Dialog)       Button
Weather app 1




                    Loading page
Image (ImageView)   (Splash Screen)



  Text (TextView)
Weather app 2


                    Background Video
                    Playing




  Text (TextView)
Multimedia App 1



Drop Down (Spinner)
                      Popup (Dialog
                      Theme)


  Selection
  Item(RadioButto
  n)                  Button (Button)
Near Me 1


                                                 Tabs (TabHost)

                                             Action Item (Button)



                                             Separator
Status List (ListView)


                                             Text (TextView)




                         Image (ImageView)
Near Me 2


                             Map(M
Map                          apActiv
Compass                      ity)




                             Pop Up
                             (Toast)

          Icon
          (MapOverlayIcon)
Picturesque 1




                                         Item List (ListView)




                                  Action Item (Button)

      Action Item (ImageButton)
Picturesque 2




                                         WebView




                                  Action Item (Button)

      Action Item (ImageButton)
Stock Market Application 1


                             Loading Page (Splash
                             Screen)




Loading (ProgessBar)
Stock Market Application 2




Loading
(ProgressDialog)
Stock Market Application 3

  Horizontal ScrollView

                                              Image (ImageView)



                                                Action Item (Button)
Scripts List (ListView
with Separators)




                Separator



                            Text (TextView)
Plan My Month (To Do List) 1


 Tabs (TabHost)




Tasks
List(Expandable Lists
- Custom Adapter)
Plan My Month (To Do List) 2


 Tabs (TabHost)

Image (ImageView)


 Text (TextView)               Tasks List (Expandable
                               List - Custom Adapter)
Learn English Quick App 1


                            Image (Dialog Icon)

                               Text(Dialog Title)

                               Text (TextView)
Pop Up(AlertDialog)
Learn English Quick App 2


 Download Status
 (ProgressBar)

                                Action Item (Button)


                            Text (TextView)

     Text (Linkify Text)
Online Android Resources
➲   Android developer website
      http://developer.android.com
➲   Open Handset Alliance
      http://www.openhandsetalliance.com
➲   Android Market
      http://market.android.com/publish
➲   Android libraries and extensions
      http://openintents.org
➲   Android developer forum
      http://www.anddev.org
Summary

➲ Solid, proven, popular, open platform
➲ Used on wide range of devices
➲ Support from Google, OEMs, telcoms
➲ Low barriers to entry
➲ Major opportunity for new developers
➲ Creativity, hard work, persistence
Thanks for coming
Android Study Group:
 http://www.iwillstudy.com/group/android

Write to us:
info@iwillstudy.com

Like us on Facebook:
http://www.facebook.com/iwillstudy

More Related Content

Similar to Android Workshop - Session 2

[Droidcon]Developing Apps for Android on 2.x/3.x/4.x
[Droidcon]Developing Apps for Android on 2.x/3.x/4.x[Droidcon]Developing Apps for Android on 2.x/3.x/4.x
[Droidcon]Developing Apps for Android on 2.x/3.x/4.xKenichi Kambara
 
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...Ted Chien
 
Techwave 2006 Advanced Datawindow Functionality
Techwave 2006 Advanced Datawindow FunctionalityTechwave 2006 Advanced Datawindow Functionality
Techwave 2006 Advanced Datawindow FunctionalityBuck Woolley
 
Techwave 2006 Advanced Datawindow Techniques
Techwave 2006 Advanced Datawindow TechniquesTechwave 2006 Advanced Datawindow Techniques
Techwave 2006 Advanced Datawindow TechniquesBuck Woolley
 
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015Andrey Vykhodtsev
 
Introduction to mobile programming with Androids.
Introduction to mobile programming with Androids. Introduction to mobile programming with Androids.
Introduction to mobile programming with Androids. Maksim Golivkin
 
Easydd program3
Easydd program3Easydd program3
Easydd program3Taha Sochi
 
Meta layout: a closer look at media queries
Meta layout: a closer look at media queriesMeta layout: a closer look at media queries
Meta layout: a closer look at media queriesStephen Hay
 
Easydd program
Easydd programEasydd program
Easydd programTaha Sochi
 
Poster & Comic Design with FOSS Software
Poster & Comic Design with FOSS SoftwarePoster & Comic Design with FOSS Software
Poster & Comic Design with FOSS SoftwareDiki Andeas
 
Easy edd phd talks 28 oct 2008
Easy edd phd talks 28 oct 2008Easy edd phd talks 28 oct 2008
Easy edd phd talks 28 oct 2008Taha Sochi
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Amit Saxena
 
Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Xavier Yin
 
Android developer training - Layman Learning Offers A Free Crash Course In An...
Android developer training - Layman Learning Offers A Free Crash Course In An...Android developer training - Layman Learning Offers A Free Crash Course In An...
Android developer training - Layman Learning Offers A Free Crash Course In An...Layman Learning
 
Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Ahsanul Karim
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkJussi Pohjolainen
 

Similar to Android Workshop - Session 2 (20)

[Droidcon]Developing Apps for Android on 2.x/3.x/4.x
[Droidcon]Developing Apps for Android on 2.x/3.x/4.x[Droidcon]Developing Apps for Android on 2.x/3.x/4.x
[Droidcon]Developing Apps for Android on 2.x/3.x/4.x
 
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
 
Techwave 2006 Advanced Datawindow Functionality
Techwave 2006 Advanced Datawindow FunctionalityTechwave 2006 Advanced Datawindow Functionality
Techwave 2006 Advanced Datawindow Functionality
 
Techwave 2006 Advanced Datawindow Techniques
Techwave 2006 Advanced Datawindow TechniquesTechwave 2006 Advanced Datawindow Techniques
Techwave 2006 Advanced Datawindow Techniques
 
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
 
Introduction to mobile programming with Androids.
Introduction to mobile programming with Androids. Introduction to mobile programming with Androids.
Introduction to mobile programming with Androids.
 
Easydd program3
Easydd program3Easydd program3
Easydd program3
 
Multi Screen Hell
Multi Screen HellMulti Screen Hell
Multi Screen Hell
 
Meta layout: a closer look at media queries
Meta layout: a closer look at media queriesMeta layout: a closer look at media queries
Meta layout: a closer look at media queries
 
Easydd program
Easydd programEasydd program
Easydd program
 
Poster & Comic Design with FOSS Software
Poster & Comic Design with FOSS SoftwarePoster & Comic Design with FOSS Software
Poster & Comic Design with FOSS Software
 
Easy edd phd talks 28 oct 2008
Easy edd phd talks 28 oct 2008Easy edd phd talks 28 oct 2008
Easy edd phd talks 28 oct 2008
 
Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1Android Tutorial For Beginners Part-1
Android Tutorial For Beginners Part-1
 
Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎
 
Foliumcheatsheet
FoliumcheatsheetFoliumcheatsheet
Foliumcheatsheet
 
Android 3
Android 3Android 3
Android 3
 
Android Deep Dive
Android Deep DiveAndroid Deep Dive
Android Deep Dive
 
Android developer training - Layman Learning Offers A Free Crash Course In An...
Android developer training - Layman Learning Offers A Free Crash Course In An...Android developer training - Layman Learning Offers A Free Crash Course In An...
Android developer training - Layman Learning Offers A Free Crash Course In An...
 
Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3Android Workshop: Day 1 Part 3
Android Workshop: Day 1 Part 3
 
Android 2D Drawing and Animation Framework
Android 2D Drawing and Animation FrameworkAndroid 2D Drawing and Animation Framework
Android 2D Drawing and Animation Framework
 

More from NAILBITER

Social Media Strategies
Social Media StrategiesSocial Media Strategies
Social Media StrategiesNAILBITER
 
jQuery for Beginners
jQuery for Beginners jQuery for Beginners
jQuery for Beginners NAILBITER
 
GBGahmedabad - Create your Business Website
GBGahmedabad - Create your Business WebsiteGBGahmedabad - Create your Business Website
GBGahmedabad - Create your Business WebsiteNAILBITER
 
Mapathon 2013 - Google Maps Javascript API
Mapathon 2013 - Google Maps Javascript APIMapathon 2013 - Google Maps Javascript API
Mapathon 2013 - Google Maps Javascript APINAILBITER
 
Cloud Workshop - Presentation
Cloud Workshop - PresentationCloud Workshop - Presentation
Cloud Workshop - PresentationNAILBITER
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud ComputingNAILBITER
 
iWillStudy.com - Light Pitch
iWillStudy.com - Light PitchiWillStudy.com - Light Pitch
iWillStudy.com - Light PitchNAILBITER
 
Cloud Summit Ahmedabad
Cloud Summit AhmedabadCloud Summit Ahmedabad
Cloud Summit AhmedabadNAILBITER
 
Android Fundamentals & Figures of 2012
Android Fundamentals & Figures of 2012Android Fundamentals & Figures of 2012
Android Fundamentals & Figures of 2012NAILBITER
 
The iPhone development on windows
The iPhone development on windowsThe iPhone development on windows
The iPhone development on windowsNAILBITER
 
Ambastha EduTech Pvt Ltd
Ambastha EduTech Pvt LtdAmbastha EduTech Pvt Ltd
Ambastha EduTech Pvt LtdNAILBITER
 
Develop open source search engine
Develop open source search engineDevelop open source search engine
Develop open source search engineNAILBITER
 
Location based solutions maps & your location
Location based solutions   maps & your locationLocation based solutions   maps & your location
Location based solutions maps & your locationNAILBITER
 
Html5 workshop part 1
Html5 workshop part 1Html5 workshop part 1
Html5 workshop part 1NAILBITER
 
Android Workshop Session 1
Android Workshop Session 1Android Workshop Session 1
Android Workshop Session 1NAILBITER
 
Linux Seminar for Beginners
Linux Seminar for BeginnersLinux Seminar for Beginners
Linux Seminar for BeginnersNAILBITER
 
Linux advanced concepts - Part 2
Linux advanced concepts - Part 2Linux advanced concepts - Part 2
Linux advanced concepts - Part 2NAILBITER
 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1NAILBITER
 

More from NAILBITER (20)

Social Media Strategies
Social Media StrategiesSocial Media Strategies
Social Media Strategies
 
jQuery for Beginners
jQuery for Beginners jQuery for Beginners
jQuery for Beginners
 
GBGahmedabad - Create your Business Website
GBGahmedabad - Create your Business WebsiteGBGahmedabad - Create your Business Website
GBGahmedabad - Create your Business Website
 
Mapathon 2013 - Google Maps Javascript API
Mapathon 2013 - Google Maps Javascript APIMapathon 2013 - Google Maps Javascript API
Mapathon 2013 - Google Maps Javascript API
 
Cloud Workshop - Presentation
Cloud Workshop - PresentationCloud Workshop - Presentation
Cloud Workshop - Presentation
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
iWillStudy.com - Light Pitch
iWillStudy.com - Light PitchiWillStudy.com - Light Pitch
iWillStudy.com - Light Pitch
 
Cloud Summit Ahmedabad
Cloud Summit AhmedabadCloud Summit Ahmedabad
Cloud Summit Ahmedabad
 
Android Fundamentals & Figures of 2012
Android Fundamentals & Figures of 2012Android Fundamentals & Figures of 2012
Android Fundamentals & Figures of 2012
 
The iPhone development on windows
The iPhone development on windowsThe iPhone development on windows
The iPhone development on windows
 
Ambastha EduTech Pvt Ltd
Ambastha EduTech Pvt LtdAmbastha EduTech Pvt Ltd
Ambastha EduTech Pvt Ltd
 
Branding
BrandingBranding
Branding
 
Advertising
AdvertisingAdvertising
Advertising
 
Develop open source search engine
Develop open source search engineDevelop open source search engine
Develop open source search engine
 
Location based solutions maps & your location
Location based solutions   maps & your locationLocation based solutions   maps & your location
Location based solutions maps & your location
 
Html5 workshop part 1
Html5 workshop part 1Html5 workshop part 1
Html5 workshop part 1
 
Android Workshop Session 1
Android Workshop Session 1Android Workshop Session 1
Android Workshop Session 1
 
Linux Seminar for Beginners
Linux Seminar for BeginnersLinux Seminar for Beginners
Linux Seminar for Beginners
 
Linux advanced concepts - Part 2
Linux advanced concepts - Part 2Linux advanced concepts - Part 2
Linux advanced concepts - Part 2
 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

Android Workshop - Session 2

  • 1. Session #2 05-02-2012 http://www.iwillstudy.com/group/android
  • 2. Producing an Android App javac Java code Byte code dx Dalvik .java .class exe classes.dex aapt Byte code <xml> Other .class files AndroidManifest.xml .apk <str > Resources
  • 6. Resource Types(/res/)  Animation Resources (/anim or /drawable)  Color State List Resource (/color)  Drawable Resources(/drawable)  Layout Resource(/layout)  Menu Resource(/menu)  String Resources(/values)  Style Resource(/values)  More Resource Types(/values)
  • 7. Screen Characteristic Screen Qualifier Description characteristic small Resources for small size screens. normal Resources for normal size screens. (This is the baseline size.) Size large Resources for large size screens. xlarge Resources for extra large size screens. land Resources for screens in the landscape orientation (wide aspect ratio). Orientation port Resources for screens in the portrait orientation (tall aspect ratio). Resources for screens that have a significantly taller or wider aspect ratio long (when in portrait or landscape orientation, respectively) than the baseline Aspect screen configuration. ratio notlong Resources for use screens that have an aspect ratio that is similar to the baseline screen configuration.
  • 8. Screen Characteristic ldpi Resources for low-density (ldpi) screens (~120dpi). Resources for medium-density (mdpi) screens mdpi (~160dpi). (This is the baseline density.) hdpi Resources for high-density (hdpi) screens (~240dpi). Resources for extra high-density (xhdpi) screens xhdpi (~320dpi). Density Resources for all densities. These are density- independent resources. The system does not scale nodpi resources tagged with this qualifier, regardless of the current screen's density. Resources for screens somewhere between mdpi and tvdpi hdpi; approximately 213dpi. This is not considered a "primary" density group.
  • 9. Fragmentation  res/layout/my_layout.xml // layout for normal screen size ("default") res/layout-small/my_layout.xml // layout for small screen size res/layout-large/my_layout.xml // layout for large screen size res/layout-xlarge/my_layout.xml // layout for extra large screen size res/layout-xlarge-land/my_layout.xml // layout for extra large in land. orientation  res/drawable-mdpi/my_icon.png // bitmap for medium density res/drawable-hdpi/my_icon.png // bitmap for high density res/drawable-xhdpi/my_icon.png // bitmap for extra high density
  • 10. Standard Asset Sizes (in Pixels), for Generalized Screen Icon Type Densities Low density screen Medium density High density screen (ldpi) screen (mdpi) (hdpi) Launcher 36 x 36 px 48 x 48 px 72 x 72 px Menu 36 x 36 px 48 x 48 px 72 x 72 px Status Bar 12w x 19h px 16w x 25h px 24w x 38h px (Android 2.3 and (preferred, width (preferred, width (preferred, width later) may vary) may vary) may vary) Status Bar (Android 2.2 and 19 x 19 px 25 x 25 px 38 x 38 px below) Tab 24 x 24 px 32 x 32 px 48 x 48 px Dialog 24 x 24 px 32 x 32 px 48 x 48 px List View 24 x 24 px 32 x 32 px 48 x 48 px
  • 11. Asset Type Prefix Example Icons ic_ ic_star.png ic_launcher_calendar Launcher icons ic_launcher .png Menu icons ic_menu ic_menu_archive.png ic_stat_notify_msg.p Status bar icons ic_stat_notify ng Tab icons ic_tab ic_tab_recent.png Dialog icons ic_dialog ic_dialog_info.png
  • 14. Create a new .xml file in your drawable folder (or drawable-mdpi folder) called gradient.xml, with the following code: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:angle="0" android:startColor="#000000" android:endColor="#000000" android:centerColor="#97CF4D" /> </shape>
  • 15. Possibilities Augmented Campus Reality Web scraping • camera + maps + compass • news filters = heads up info • sport scores • news eliminators Games • multi-player (bluetooth, Distributed wifi, cell) computing? • location-based (scavenger • 10,000 phones all hunt) donating their idle time Custom overlays for maps • weather, traffic, friends Shared whiteboard
  • 16. Android Controls  Rss Reader  Contacts Manager  Weather Application  Multimedia Player  Near Me  Picturesque  Stock Market Application  Plan My Month  Learn English Quick App  Rate Music App
  • 17. Rss Reader Screen1 Item List (ListView) Button
  • 18. Rss Reader Screen2 Options Menu
  • 19. Contact Manager Screen1 Buttons (ImageView) Groups List (Expandable Lists - Custom Adapter) Options Menu
  • 20. Contact Manager Screen2 PopUp (AlertDialog) Input Area (EditText)
  • 21. Contact Manager Screen3 Input (Search EditText) Search Action Search Box(Search Dialog) Button
  • 22. Weather app 1 Loading page Image (ImageView) (Splash Screen) Text (TextView)
  • 23. Weather app 2 Background Video Playing Text (TextView)
  • 24. Multimedia App 1 Drop Down (Spinner) Popup (Dialog Theme) Selection Item(RadioButto n) Button (Button)
  • 25. Near Me 1 Tabs (TabHost) Action Item (Button) Separator Status List (ListView) Text (TextView) Image (ImageView)
  • 26. Near Me 2 Map(M Map apActiv Compass ity) Pop Up (Toast) Icon (MapOverlayIcon)
  • 27. Picturesque 1 Item List (ListView) Action Item (Button) Action Item (ImageButton)
  • 28. Picturesque 2 WebView Action Item (Button) Action Item (ImageButton)
  • 29. Stock Market Application 1 Loading Page (Splash Screen) Loading (ProgessBar)
  • 30. Stock Market Application 2 Loading (ProgressDialog)
  • 31. Stock Market Application 3 Horizontal ScrollView Image (ImageView) Action Item (Button) Scripts List (ListView with Separators) Separator Text (TextView)
  • 32. Plan My Month (To Do List) 1 Tabs (TabHost) Tasks List(Expandable Lists - Custom Adapter)
  • 33. Plan My Month (To Do List) 2 Tabs (TabHost) Image (ImageView) Text (TextView) Tasks List (Expandable List - Custom Adapter)
  • 34. Learn English Quick App 1 Image (Dialog Icon) Text(Dialog Title) Text (TextView) Pop Up(AlertDialog)
  • 35. Learn English Quick App 2 Download Status (ProgressBar) Action Item (Button) Text (TextView) Text (Linkify Text)
  • 36. Online Android Resources ➲ Android developer website  http://developer.android.com ➲ Open Handset Alliance  http://www.openhandsetalliance.com ➲ Android Market  http://market.android.com/publish ➲ Android libraries and extensions  http://openintents.org ➲ Android developer forum  http://www.anddev.org
  • 37. Summary ➲ Solid, proven, popular, open platform ➲ Used on wide range of devices ➲ Support from Google, OEMs, telcoms ➲ Low barriers to entry ➲ Major opportunity for new developers ➲ Creativity, hard work, persistence
  • 38. Thanks for coming Android Study Group: http://www.iwillstudy.com/group/android Write to us: info@iwillstudy.com Like us on Facebook: http://www.facebook.com/iwillstudy