SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
Made Simple
Who am I?


  Gabriel Dogaru

     –   Ex software developer at Synygy

     –   Ex software engineer at Amazon

     –   Co-founder TAGonSoft
Agenda

   ●   Why Android
   ●   Small Android overview
   ●   Leverage the power of java frameworks with Android
What is Android?



 “Android is a software stack for mobile devices
 that includes an operating system, middleware
 and key applications”
Why Android?
Why Android?




               ●
               ●   http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
                   http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
Why Android?




               ●
               ●   http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
                   http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
Why write native Android?
Why Native Android?




                      Indeed job trends 28.10.2012
Why Native Android?




                      Indeed job trends 28.10.2012
Why Native Android?




                  Respect your user
Who is Android?
Who is Android?
Who is Android?
Who is Android?
Android Architecture
Android Architecture
Android Kernel
Native libraries
Android Runtime
Application Framework
Applications
Building Blocks

   ●   Activity
   ●   Intent Receiver
   ●   Service
   ●   ContentProvider
Activity

    ●   A single, focused thing that the user can do
    ●   Provides a screen with which users can interact in order
        to do something
Intent Receiver
●




    ●   Handle the broadcast intents
Service

   ●   Can perform long-running operations in the background
       and does not provide a user interface
   ●   A component can bind to a service to interact with it
Content provider

   ●   Enable applications to share data
Intent

   ●   Passive data structure holding an abstract description of
       an operation to be performed
   ●   Used to start your activities
   ●   Used to start external applications
That's just old stuff from 2008

   ●   http://developer.android.com
   ●   http://www.youtube.com/results?search_query=androidology
   ●   blogs++
How about my handy Java frameworks?
The Best Programmers Are Lazy and Dumb ?!?!?
Android annotations
Helps with activities


 @NoTitle
 @Fullscreen
 @EActivity(R.layout.bookmarks)
 public class BookmarksToClipboardActivity extends Activity {

   @ViewById
   ListView bookmarkList;
   @ViewById
   EditText search;

   @AfterViews
   void initBookmarkList() {
     search.setText(??);//.....
   }
Helps with events

 //.....


 @Click( {R.id.button1, R.id.button2})
 void updateBookmarksClicked() {
     searchAsync(search.getText().toString(),userid);
 }


 @ItemClick
 void bookmarkListItemClicked(Bookmark selectedBookmark) {
     clipboardManager.setText(selectedBookmark.getUrl());
 }
 //.....
Helps with preferences
 @SharedPref
 public interface MyPrefs {
  @DefaultString("John")
     String name();


    @DefaultInt(42)
    int age();

    long lastUpdated();
 }
 …...............................
 @EActivity
 public class MyActivity extends Activity {
     @Pref
     MyPrefs_ myPrefs;
 }
Helps with Rest Services

 @Rest("http://tagonsoft.ro/")
 public interface CodecampClient {


     @Get("codecamp.php")
     @Accept(MediaType.APPLICATION_JSON)
     Codecamp getEventData();

     @Post("feedback.php")
     void sendFeedback(Feedback feedback);


     RestTemplate getRestTemplate();
 }
Got ORM? OrmLite
 @DatabaseTable(tableName = "sessions")
 public class Session {
     @DatabaseField(id = true, columnName = "_id")
     long id;
 //....
 }

 //....
 TableUtils.createTable(connectionSource, Session.class);



 //....
 dbHelper.getSessionDao().create(session);
 dbHelper.getSessionDao().queryForId(sessionID);
And it all builds up
So?
      ●   Android is the world's most popular mobile platform
      ●   Writing Android code can be fun and easy
      ●   developer.android.com is your friend
      ●   You can download example Codecamp app source code from
             https://bitbucket.org/gdogaru/codecamp_android
Thank You!




                                                 gdogaru@gmail.com
                                                 gabrieldogaru.com
tagonsoft.ro

               Please fill in the evaluation forms

Contenu connexe

Tendances

Tendances (20)

Алексей Волков "Введение в React Native"
Алексей Волков "Введение в React Native"Алексей Волков "Введение в React Native"
Алексей Волков "Введение в React Native"
 
Survival of the Continuist
Survival of the ContinuistSurvival of the Continuist
Survival of the Continuist
 
React Native
React NativeReact Native
React Native
 
Nicholas Gustilo "Clean Android: building great mobile apps"
Nicholas Gustilo "Clean Android: building great mobile apps"Nicholas Gustilo "Clean Android: building great mobile apps"
Nicholas Gustilo "Clean Android: building great mobile apps"
 
How do we test nodejs apps?
How do we test nodejs apps?How do we test nodejs apps?
How do we test nodejs apps?
 
Let’s be productive with spring boot
Let’s be productive with spring bootLet’s be productive with spring boot
Let’s be productive with spring boot
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
Agile coding dojo session #3 (2014 09-20)
Agile coding dojo session #3 (2014 09-20)Agile coding dojo session #3 (2014 09-20)
Agile coding dojo session #3 (2014 09-20)
 
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...
 
Automate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.jsAutomate your WordPress Workflow with Grunt.js
Automate your WordPress Workflow with Grunt.js
 
My experience as Eclipse Contributor - ECE 2015
My experience as Eclipse Contributor - ECE 2015My experience as Eclipse Contributor - ECE 2015
My experience as Eclipse Contributor - ECE 2015
 
React Native for ReactJS Devs
React Native for ReactJS DevsReact Native for ReactJS Devs
React Native for ReactJS Devs
 
Unscrambling An Omelette - How Companies Can Use WordPress Better - Jeremy Ke...
Unscrambling An Omelette - How Companies Can Use WordPress Better - Jeremy Ke...Unscrambling An Omelette - How Companies Can Use WordPress Better - Jeremy Ke...
Unscrambling An Omelette - How Companies Can Use WordPress Better - Jeremy Ke...
 
React Native
React NativeReact Native
React Native
 
Reuse features in Android applications
Reuse features in Android applicationsReuse features in Android applications
Reuse features in Android applications
 
JavaScript Tools and Implementation
JavaScript Tools and ImplementationJavaScript Tools and Implementation
JavaScript Tools and Implementation
 
NativeScript: Cross-Platform Mobile Apps with JavaScript and Angular
NativeScript: Cross-Platform Mobile Apps with JavaScript and AngularNativeScript: Cross-Platform Mobile Apps with JavaScript and Angular
NativeScript: Cross-Platform Mobile Apps with JavaScript and Angular
 
How We Use GitHub
How We Use GitHubHow We Use GitHub
How We Use GitHub
 
Flutter Workshop 2021 @ ARU
Flutter Workshop 2021 @ ARUFlutter Workshop 2021 @ ARU
Flutter Workshop 2021 @ ARU
 
Angular2.0@Shanghai0319
Angular2.0@Shanghai0319Angular2.0@Shanghai0319
Angular2.0@Shanghai0319
 

Similaire à Android Made Simple

Similaire à Android Made Simple (20)

Android Jump Start
Android Jump StartAndroid Jump Start
Android Jump Start
 
Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year  Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 Introduction
 
Android development first steps
Android development   first stepsAndroid development   first steps
Android development first steps
 
Delegating user tasks in applications
Delegating user tasks in applicationsDelegating user tasks in applications
Delegating user tasks in applications
 
Android material design lecture #2
Android material design   lecture #2Android material design   lecture #2
Android material design lecture #2
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
Android Web app
Android Web app Android Web app
Android Web app
 
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
 
Mobile frameworks and Titanium specifically
Mobile frameworks and Titanium specificallyMobile frameworks and Titanium specifically
Mobile frameworks and Titanium specifically
 
Day1 before getting_started
Day1 before getting_startedDay1 before getting_started
Day1 before getting_started
 
Tooling Matters - Development tools
Tooling Matters - Development toolsTooling Matters - Development tools
Tooling Matters - Development tools
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Introduction Flutter for Create Multiplatform Apps
Introduction Flutter for Create Multiplatform AppsIntroduction Flutter for Create Multiplatform Apps
Introduction Flutter for Create Multiplatform Apps
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
Android design patterns
Android design patternsAndroid design patterns
Android design patterns
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
It's more fun in Android!
It's more fun in Android!It's more fun in Android!
It's more fun in Android!
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
 

Dernier

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Android Made Simple

  • 2. Who am I? Gabriel Dogaru – Ex software developer at Synygy – Ex software engineer at Amazon – Co-founder TAGonSoft
  • 3. Agenda ● Why Android ● Small Android overview ● Leverage the power of java frameworks with Android
  • 4. What is Android? “Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
  • 6. Why Android? ● ● http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android? http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
  • 7. Why Android? ● ● http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android? http://www.guardian.co.uk/technology/appsblog/2012/aug/16/android-winning-apps-china-smartphone is Android?
  • 8. Why write native Android?
  • 9. Why Native Android? Indeed job trends 28.10.2012
  • 10. Why Native Android? Indeed job trends 28.10.2012
  • 11. Why Native Android? Respect your user
  • 23. Building Blocks ● Activity ● Intent Receiver ● Service ● ContentProvider
  • 24. Activity ● A single, focused thing that the user can do ● Provides a screen with which users can interact in order to do something
  • 25. Intent Receiver ● ● Handle the broadcast intents
  • 26. Service ● Can perform long-running operations in the background and does not provide a user interface ● A component can bind to a service to interact with it
  • 27. Content provider ● Enable applications to share data
  • 28. Intent ● Passive data structure holding an abstract description of an operation to be performed ● Used to start your activities ● Used to start external applications
  • 29. That's just old stuff from 2008 ● http://developer.android.com ● http://www.youtube.com/results?search_query=androidology ● blogs++
  • 30. How about my handy Java frameworks?
  • 31. The Best Programmers Are Lazy and Dumb ?!?!?
  • 33. Helps with activities @NoTitle @Fullscreen @EActivity(R.layout.bookmarks) public class BookmarksToClipboardActivity extends Activity { @ViewById ListView bookmarkList; @ViewById EditText search; @AfterViews void initBookmarkList() { search.setText(??);//..... }
  • 34. Helps with events //..... @Click( {R.id.button1, R.id.button2}) void updateBookmarksClicked() { searchAsync(search.getText().toString(),userid); } @ItemClick void bookmarkListItemClicked(Bookmark selectedBookmark) { clipboardManager.setText(selectedBookmark.getUrl()); } //.....
  • 35. Helps with preferences @SharedPref public interface MyPrefs { @DefaultString("John") String name(); @DefaultInt(42) int age(); long lastUpdated(); } …............................... @EActivity public class MyActivity extends Activity { @Pref MyPrefs_ myPrefs; }
  • 36. Helps with Rest Services @Rest("http://tagonsoft.ro/") public interface CodecampClient { @Get("codecamp.php") @Accept(MediaType.APPLICATION_JSON) Codecamp getEventData(); @Post("feedback.php") void sendFeedback(Feedback feedback); RestTemplate getRestTemplate(); }
  • 37. Got ORM? OrmLite @DatabaseTable(tableName = "sessions") public class Session { @DatabaseField(id = true, columnName = "_id") long id; //.... } //.... TableUtils.createTable(connectionSource, Session.class); //.... dbHelper.getSessionDao().create(session); dbHelper.getSessionDao().queryForId(sessionID);
  • 38. And it all builds up
  • 39. So? ● Android is the world's most popular mobile platform ● Writing Android code can be fun and easy ● developer.android.com is your friend ● You can download example Codecamp app source code from https://bitbucket.org/gdogaru/codecamp_android
  • 40.
  • 41. Thank You! gdogaru@gmail.com gabrieldogaru.com tagonsoft.ro Please fill in the evaluation forms