SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (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
 

Ähnlich wie Android Made Simple

Ähnlich wie 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
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
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
 

Kürzlich hochgeladen (20)

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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

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