EESTEC Android Workshop 4

552 views

Published on

Android Workshop hosted by Antonis Kalipetis, organized by EESTEC LC Athens - 2014.

Agenda:
• Finishing the Flickr Photoset App
• Understanding Intents
• Structuring and designing applications
• Location services

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
552
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

EESTEC Android Workshop 4

  1. 1. ANTONIS KALIPETIS - MOBILE LEAD, SOURCELAIR AKALIPETIS@SOURCELAIR.COM, @AKALIPETIS ANDROID WORKSHOP 4
  2. 2. L A S T, B U T N O T L E A S T… • Finishing the Flickr Photoset App • Understanding Intents • Structuring and designing applications • Location services
  3. 3. HTTP://J.MP/the_4 LET’S GET OUR HANDS DIRTY Photo by Rachel-Johnson, Flickr
  4. 4. DO YOU REMEMBER EVERYTHING, OR DO YOU HAVE ANY QUESTIONS?
  5. 5. U N D E R S TA N D I N G I N T E N T S • An intent is an abstract description of an operation to be performed. • It can be used to: • Launch an Activity • Send it to any interested BroadcastReceiver • Communicate with a background Service
  6. 6. SYSTEM MESSAGES STRUCTURE - ACTION - D ATA - EXTRAS http://dangerouslee.biz/2011/08/26/
  7. 7. M E S S A G E PA S S I N G I N T H E WORLD OF AN APP
  8. 8. SYNCING WITH NETWORK? • Many awesome libraries, fast networking • Volley • OkHTTP • SyncAdapters, background continuous syncs • Training at: developer.android.com
  9. 9. A P P L I C AT I O N L AY E R S • Visible Layer • Activities, Views, Fragments • Processing - Background Layer • Services, SyncAdapters, Threads • Data Layer • Models, Adapters
  10. 10. STRUCTURING YOUR CODE • Split code in Java packages • com.example.m_app. • models • io • activity • ui
  11. 11. I KNOW WHERE YOU ARE, I KNOW YOUR L O C AT I O N http://www.clker.com/clipart-orange-pin-1.html
  12. 12. LET’S ADD SOME DEPENDENCIES! dependencies { compile 'com.google.android.gms:play-services: 4.0.30' }
  13. 13. W E ’ L L A L W AY S N E E D P E R M I S S I O N S • <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> • <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
  14. 14. IDEAS FOR SIMPLE APPS • RSS Reader • Location updates - route • File explorer • Simple Flickr or other API service • Sky is the limit…

×