Upgrade to Pro — share decks privately, control downloads, hide ads and more …

From Visual Studio to Android Studio

From Visual Studio to Android Studio

This session provides an introduction to building native Android apps using Android Studio. Topics are covered from the perspective of someone with .NET experience but are appropriate for anyone looking to get into the mobile space. We will begin by learning what Android has to offer and then build our first small, but functional application.


Michael Crump

January 08, 2015


  1. From Visual Studio to Android Studio Michael Crump Telerik @mbcrump

    michaelcrump.net developer.telerik.com
  2. Where are we headed? •  Getting Started – Visual Studio

    vs. Android Studio •  Look at Android Studio and Build Something •  Fill in Missing Gaps •  Look at an App that was Published in the Google Play Store •  Wrap Up – Resources and a Q & A
  3. Visual Studio vs. Android Studio Visual Studio Android Studio OS

    PC / Mac with VMs PC or Mac Developer Center http://dev.windows.com/ http://play.google.com Write Native Apps Visual Studio Eclipse or Android Studio Language C# / VB / C++ / Etc. Java UI XAML or HTML XML Costs (Individual) $19 $25 Emulator Yes, Fast and Powerful Yes, Slow and Painful Targets Tablet and Phone Tablet, Phone, Wearables, TV, Glass
  4. Demo : Build and Deploy Something in Android Studio

  5. http://bit.ly/1iMmfz7 The Android Landscape

  6. Why Develop for Android? •  Owns a majority of the

    Market Share (*84.4 in Q3 2014). •  Low Development Cost and High Returns •  Underlying SDK Architecture is open source. •  Users can install apps outside of Google Play without Developer License. •  Java is heavily documented on the web and plenty of questions are already answered. http://www.idc.com/prodserv/smartphone-os-market-share.jsp
  7. http://bit.ly/1rNnO5d With Great Market Share Comes Great Responsibility

  8. Device Fragmentation (Aug 2014) http://opensignal.com/reports/2014/android-fragmentation/

  9. Brand Fragmentation http://opensignal.com/reports/2014/android-fragmentation/

  10. Operating System Fragmentation http://opensignal.com/reports/2014/android-fragmentation/

  11. Screen Size Fragmentation http://opensignal.com/reports/fragmentation-2013/

  12. iOS Screen Size Fragmentation http://opensignal.com/reports/fragmentation-2013/

  13. But don’t let this scare you off! •  Screen Density

    (DPI buckets) – Get a consistent size and look across devices •  Android will Auto-Scale Assets – Supply higher resolution assets you get lower resolution assets for free •  Layout – Use LayoutMangers to manage layout – LinearLayout, RelativeLayout, GridLayout
  14. Platform Versions http://developer.android.com/about/dashboards/index.html#platform

  15. Tools •  Android Debug Bridge – Communicating with any sort of

    device. •  Logcat – Trapping or seeing errors. •  Android SDK Manager – Install, updates, SDKs for each API Level, Extras •  DDMS (Dalvik Debug Monitor Service) – Connects to ADB, retrieves the devices PID and opens the connection to the debugger.
  16. Demo: Tip Calculator

  17. C# Java Declare a String and add content. string strMC

    = “Michael Crump”; String strMC = "Michael Crump"; Determine length of a string. int len = strMC.Length; int len = strMC.length(); Date Time DateTime now = DateTime.Now; Date now = new Date(); Array string[] array = { “A”, “B”, “C” }; String array[] = new String[] {"A", "B", "C" }; Calling a Method (Same) anObject.SomeMethod(); anObject.SomeMethod(); Passing an Argument (Same) LearnSkill(“Android”); LearnSkill(“Android”); Passing Arguments (Same) LearnSkill(42, true); LearnSkill(42, true); C# vs. Java Syntax Comparison
  18. Telerik UI for Android •  Chart Control – Bar – Pie, Doughnut

    – Line, Spline – Area, Spline Area – RangeBar and More •  Support for Multiple Axes •  Annotations, Interactions, etc. •  Calendar and AppFeedback Control •  Telerik UI Examples Demo App – Search Google Play for “Telerik”
  19. Resources •  Main Starting Point: http://developer.android.com/ •  Google I/O Videos

    from 2014: https://www.google.com/events/io/io14videos •  Android Weekly - http://androidweekly.net/ •  Android Developers on YouTube: https://www.youtube.com/user/androiddevelopers
  20. Thank you! Michael Crump Telerik @mbcrump michaelcrump.net developer.telerik.com Slides/Source Code

    https://speakerdeck.com/mbcrump https://github.com/mbcrump