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
Tweet

More Decks by Michael Crump

Other Decks in Programming

Transcript

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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.
  6. 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
  7. 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”
  8. 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