Android App development using Xamarin Studio

982 views
686 views

Published on

Exploring the Xamarin studio and develop simple android app using C#.Net

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

  • Be the first to like this

No Downloads
Views
Total views
982
On SlideShare
0
From Embeds
0
Number of Embeds
117
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Android App development using Xamarin Studio

  1. 1. Android App Development with C#.Net (using Xamarin Studio) Vasistan Shakkaravarthi
  2. 2. In this module • About Xamarin Studio. • Xamarin.Android architecture • Xamarin Studio IDE • Nice to know • Sample app: Layout design • Sample app: Activity code • Sample app creation demo. Android App Development using Xamarin Studio 2
  3. 3. Xamarin Studio Build better apps for iOS, Android and Mac with Xamarin Studio. Android App Development using Xamarin Studio 3
  4. 4. Xamarin.Android Architecture Android App Development using Xamarin Studio 4 Xamarin.Android applications run within the Mono execution environment. This execution environment runs side-by-side with the Dalvik Virtual Machine. Both runtime environments run on top of the Linux kernel and expose various APIs to the user code that allows developers to access the underlying system. Both Mono and Dalvik are runtimes written in the C language.
  5. 5. Xamarin Studio IDE Android App Development using Xamarin Studio 5
  6. 6. Xamarin Studio IDE Android App Development using Xamarin Studio 6
  7. 7. Nice to know • Layouts • Activity • Resources • C# features (generic class, delegate etc.) Android App Development using Xamarin Studio 7
  8. 8. Layout Design Android App Development using Xamarin Studio 8 TextView control EditText control Button control
  9. 9. Activity Code using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace SampleApp { [Activity (Label = "Sample", MainLauncher=true)] public class CalcActivity : Activity { protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.CalcForm); Button button = FindViewById<Button> (Resource.Id.button1); button.Click += delegate { EditText txt1 = FindViewById<EditText> (Resource.Id.editText1); EditText txt2 = FindViewById<EditText> (Resource.Id.editText2); TextView tvResult = FindViewById<TextView> (Resource.Id.textView4); tvResult.Text= (int.Parse( txt1.Text.Trim()) + int.Parse( txt2.Text.Trim())).ToString(); }; } } } Android App Development using Xamarin Studio 9
  10. 10. Demo Android App Development using Xamarin Studio 10
  11. 11. Reference • http://developer.xamarin.com/guides/android/under_the_hood/archi tecture/ • https://xamarin.com/studio • http://developer.xamarin.com/ Android App Development using Xamarin Studio 11
  12. 12. Thank you Check the other resources Blog http://vasistan.blogspot.in YouTube http://www.youtube.com/playlist?list=PL-CcORxeaUcgXHO7UW9sGNbue9wH-4No3

×