SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
Mobile Programming
Kalmesh Nyamagoudar
9th August 2013
Why Mobile sites/apps??
§  Users carry the device wherever they go
§  Better interaction with users
§  Great monetization benefits
09/08/132Yahoo! Confidential & Proprietary.
Issues
§  Smaller screens
§  Limited computing power
§  Limited network connectivity
Smart Phones
10/08/133Yahoo! Confidential & Proprietary.
§  iPhone : What I do
§  Android : What we will talk today….
§  Windows 8 : Hidden gem
§  ….
§  ….
§  ….
Installations
10/08/134Yahoo! Confidential & Proprietary.
§  JDK : http://jdk7.java.net/
§  ADT : http://developer.android.com/sdk/index.html
›  Installs both eclipse and android SDK
§  Create AVD : Android Virtual Device
Let’s create an android project
10/08/135Yahoo! Confidential & Proprietary.
Decide your App UI
10/08/136Yahoo! Confidential & Proprietary.
What each UI element represents in Android
10/08/137Yahoo! Confidential & Proprietary.
Text Field Button
Grid Of Images
Go to Eclipse : Things to do
10/08/138Yahoo! Confidential & Proprietary.
§  Create all the UI elements(TextField, Button, GridView)
›  Give ids to all UI elements
›  Create a variable for each UI element
›  Connect each variable with its corresponding UI element
10/08/139Yahoo! Confidential & Proprietary.
§  Create a method for Button : OnClick
§  Add Internet permission to Android Manifest
10/08/1310Yahoo! Confidential & Proprietary.
§  Implement the method that has to execute on click of button
REST Query
•  Where to store the results ??? : ArrayList Of ImageResult Objects
•  Create a separate class : ImageResult with two variables
•  thumbUrl
•  fullUrl
10/08/1311Yahoo! Confidential & Proprietary.
§  Run your code once on Emulator
›  Check the output on LogCat’s DEBUG section
›  URLs of image results are printed
§  How to show these images in GridView?
›  Create an adapter(A subclass of ArrayAdapter<ImageResult) class
›  Create an adapter object in main activity
›  Attach it to gridView
›  Populate entries of arraylist into adapter once response is parsed.
§  Run it
›  URLs instead of images in the Grid View
Adding Images to GridView
10/08/1312Yahoo! Confidential & Proprietary.
§  Create a new layout (Android XML file)
›  Add a SmartImageView to the new layout created
§  Change the name of layout in adapter
›  Dear adapter, please make use of SmartImageView whenever you try to display
something
§  How to load the url into image view??
›  Job of adapter
10/08/1313Yahoo! Confidential & Proprietary.
§  ~~ Launching another screen(activity)
›  Demo : YahooImageSearch
§  Google Image Search
›  Demo : GridImageSearch
§  ListView Instead of a GridView??
›  Demo : YahooExtendedAnswersClient
§  Oauth?? My Images from Flickr??
›  Scribe.jar
›  https://github.com/thecodepath/android-rest-client-template
›  Demo : FlickrClient

Más contenido relacionado

Destacado

Action against hunger
Action against hungerAction against hunger
Action against hunger
Daniel Cheng
 
5 themes of geography 2013
5 themes of geography 20135 themes of geography 2013
5 themes of geography 2013
amandaboo96
 
CPS Student Handbook: 2012-2013
CPS Student Handbook: 2012-2013CPS Student Handbook: 2012-2013
CPS Student Handbook: 2012-2013
jcoggeshall
 
ChangeHappensFourthEditionMaster
ChangeHappensFourthEditionMasterChangeHappensFourthEditionMaster
ChangeHappensFourthEditionMaster
Erin Burrows
 
Change Management themes
Change Management themesChange Management themes
Change Management themes
Adewale Abe
 
人生十問 星雲大師
人生十問 星雲大師人生十問 星雲大師
人生十問 星雲大師
菜包 七逃
 
Jornal diario do interior agosto
Jornal diario do interior   agostoJornal diario do interior   agosto
Jornal diario do interior agosto
amarilio01
 
Comm 303 presentation
Comm 303 presentationComm 303 presentation
Comm 303 presentation
ThomasDahlia
 

Destacado (19)

2012 amb final_02_22_2012
2012 amb final_02_22_20122012 amb final_02_22_2012
2012 amb final_02_22_2012
 
Action against hunger
Action against hungerAction against hunger
Action against hunger
 
Historia del Internet
Historia del InternetHistoria del Internet
Historia del Internet
 
5 themes of geography 2013
5 themes of geography 20135 themes of geography 2013
5 themes of geography 2013
 
Northeastern CPS Registration guide
Northeastern CPS Registration guideNortheastern CPS Registration guide
Northeastern CPS Registration guide
 
Pmt engineers
Pmt engineersPmt engineers
Pmt engineers
 
CPS Student Handbook: 2012-2013
CPS Student Handbook: 2012-2013CPS Student Handbook: 2012-2013
CPS Student Handbook: 2012-2013
 
ChangeHappensFourthEditionMaster
ChangeHappensFourthEditionMasterChangeHappensFourthEditionMaster
ChangeHappensFourthEditionMaster
 
10 keutamaan shodaqah
10 keutamaan shodaqah10 keutamaan shodaqah
10 keutamaan shodaqah
 
Bob Marshall Wilderness Area, Montana
Bob Marshall Wilderness Area, MontanaBob Marshall Wilderness Area, Montana
Bob Marshall Wilderness Area, Montana
 
Change Management themes
Change Management themesChange Management themes
Change Management themes
 
ร้านขายผู้ชาย
ร้านขายผู้ชายร้านขายผู้ชาย
ร้านขายผู้ชาย
 
人生十問 星雲大師
人生十問 星雲大師人生十問 星雲大師
人生十問 星雲大師
 
Cloud by printi
Cloud by printiCloud by printi
Cloud by printi
 
True touch
 True touch True touch
True touch
 
NEU CPS Student Newsletter: August 2014
NEU CPS Student Newsletter: August 2014NEU CPS Student Newsletter: August 2014
NEU CPS Student Newsletter: August 2014
 
Sb executive summary-spc_spanish[1]
Sb executive summary-spc_spanish[1]Sb executive summary-spc_spanish[1]
Sb executive summary-spc_spanish[1]
 
Jornal diario do interior agosto
Jornal diario do interior   agostoJornal diario do interior   agosto
Jornal diario do interior agosto
 
Comm 303 presentation
Comm 303 presentationComm 303 presentation
Comm 303 presentation
 

Similar a HackU 2013 : Introduction to Android programming

Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
Gil Irizarry
 
Installing eclipse & sdk
Installing eclipse & sdkInstalling eclipse & sdk
Installing eclipse & sdk
Arun Kumar
 

Similar a HackU 2013 : Introduction to Android programming (20)

OpenMIC March-2012.phonegap
OpenMIC March-2012.phonegapOpenMIC March-2012.phonegap
OpenMIC March-2012.phonegap
 
Android
AndroidAndroid
Android
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
From Idea to App (or “How we roll at Small Town Heroes”)
From Idea to App (or “How we roll at Small Town Heroes”)From Idea to App (or “How we roll at Small Town Heroes”)
From Idea to App (or “How we roll at Small Town Heroes”)
 
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
 
Android Lollipop: The developer's perspective
Android Lollipop: The developer's perspectiveAndroid Lollipop: The developer's perspective
Android Lollipop: The developer's perspective
 
Google I/O 2019 - what's new in Android Q and Jetpack
Google I/O 2019 - what's new in Android Q and JetpackGoogle I/O 2019 - what's new in Android Q and Jetpack
Google I/O 2019 - what's new in Android Q and Jetpack
 
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
 
Native Android Development with Spring
Native Android Development with SpringNative Android Development with Spring
Native Android Development with Spring
 
Android
AndroidAndroid
Android
 
Rhomobile 5.5 Release Notes
Rhomobile 5.5 Release NotesRhomobile 5.5 Release Notes
Rhomobile 5.5 Release Notes
 
Myths of Angular 2: What Angular Really Is
Myths of Angular 2: What Angular Really IsMyths of Angular 2: What Angular Really Is
Myths of Angular 2: What Angular Really Is
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
 
Introduction to Android - Mobile Fest Singapore 2009
Introduction to Android - Mobile Fest Singapore 2009Introduction to Android - Mobile Fest Singapore 2009
Introduction to Android - Mobile Fest Singapore 2009
 
React native
React nativeReact native
React native
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
 
Installing eclipse & sdk
Installing eclipse & sdkInstalling eclipse & sdk
Installing eclipse & sdk
 
Android development beginners faq
Android development  beginners faqAndroid development  beginners faq
Android development beginners faq
 
Ionic2, les développeurs web à l'assaut du mobile, BDX I/O le 21/10/2016
Ionic2, les développeurs web à l'assaut du mobile, BDX I/O le 21/10/2016Ionic2, les développeurs web à l'assaut du mobile, BDX I/O le 21/10/2016
Ionic2, les développeurs web à l'assaut du mobile, BDX I/O le 21/10/2016
 

Último

Último (20)

TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 

HackU 2013 : Introduction to Android programming

  • 2. Why Mobile sites/apps?? §  Users carry the device wherever they go §  Better interaction with users §  Great monetization benefits 09/08/132Yahoo! Confidential & Proprietary. Issues §  Smaller screens §  Limited computing power §  Limited network connectivity
  • 3. Smart Phones 10/08/133Yahoo! Confidential & Proprietary. §  iPhone : What I do §  Android : What we will talk today…. §  Windows 8 : Hidden gem §  …. §  …. §  ….
  • 4. Installations 10/08/134Yahoo! Confidential & Proprietary. §  JDK : http://jdk7.java.net/ §  ADT : http://developer.android.com/sdk/index.html ›  Installs both eclipse and android SDK §  Create AVD : Android Virtual Device
  • 5. Let’s create an android project 10/08/135Yahoo! Confidential & Proprietary.
  • 6. Decide your App UI 10/08/136Yahoo! Confidential & Proprietary.
  • 7. What each UI element represents in Android 10/08/137Yahoo! Confidential & Proprietary. Text Field Button Grid Of Images
  • 8. Go to Eclipse : Things to do 10/08/138Yahoo! Confidential & Proprietary. §  Create all the UI elements(TextField, Button, GridView) ›  Give ids to all UI elements ›  Create a variable for each UI element ›  Connect each variable with its corresponding UI element
  • 9. 10/08/139Yahoo! Confidential & Proprietary. §  Create a method for Button : OnClick §  Add Internet permission to Android Manifest
  • 10. 10/08/1310Yahoo! Confidential & Proprietary. §  Implement the method that has to execute on click of button REST Query •  Where to store the results ??? : ArrayList Of ImageResult Objects •  Create a separate class : ImageResult with two variables •  thumbUrl •  fullUrl
  • 11. 10/08/1311Yahoo! Confidential & Proprietary. §  Run your code once on Emulator ›  Check the output on LogCat’s DEBUG section ›  URLs of image results are printed §  How to show these images in GridView? ›  Create an adapter(A subclass of ArrayAdapter<ImageResult) class ›  Create an adapter object in main activity ›  Attach it to gridView ›  Populate entries of arraylist into adapter once response is parsed. §  Run it ›  URLs instead of images in the Grid View
  • 12. Adding Images to GridView 10/08/1312Yahoo! Confidential & Proprietary. §  Create a new layout (Android XML file) ›  Add a SmartImageView to the new layout created §  Change the name of layout in adapter ›  Dear adapter, please make use of SmartImageView whenever you try to display something §  How to load the url into image view?? ›  Job of adapter
  • 13. 10/08/1313Yahoo! Confidential & Proprietary. §  ~~ Launching another screen(activity) ›  Demo : YahooImageSearch §  Google Image Search ›  Demo : GridImageSearch §  ListView Instead of a GridView?? ›  Demo : YahooExtendedAnswersClient §  Oauth?? My Images from Flickr?? ›  Scribe.jar ›  https://github.com/thecodepath/android-rest-client-template ›  Demo : FlickrClient