Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Xamarin.Android Online Skills Test

Topics Covered

  • Push notification
  • Custom Controls
  • Local storage
  • Webview
  • Working with Images
  • Alarm Manager
  • Video
  • Map
  • SMS
  • SQLite
  • Page Layout

Useful for hiring

  • Xamarin Developer
  • Xamarin Consultant

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH
Question

How can you check the connectivity of internet in Xamarin.android?

Answer
    • ConnectivityManager connectivityManager = (ConnectivityManager) GetSystemService();
      NetworkInfo activeConnection = connectivityManager.ActiveNetworkInfo;
      bool isOffline = (activeConnection == null) && activeConnection.IsConnected;

    • ConnectivityManager connectivityManager = (ConnectivityManager) GetSystemService(ConnectivityService);
      NetworkInfo activeConnection = connectivityManager.ActiveNetworkInfo;
      bool isOnline = (activeConnection != null) && activeConnection.IsConnected;

    • ConnectivityManager connectivityManager = (ConnectivityManager) GetSystemService();
      NetworkInfo activeConnection = connectivityManager.ActiveNetworkInfo;
      bool isOnline = (activeConnection != null) && activeConnection.IsConnected;

    • ConnectivityManager connectivityManager = (ConnectivityManager) GetSystemService();
      NetworkInfo activeConnection = connectivityManager.ActiveNetworkInfo;
      bool isOnline = (activeConnection == null) && activeConnection.Connected;

Question

How can you send SMS from your Xamarin.Android Application?

Answer
    • SmsManager.Default.SendTextMessage ("1234567890",null,"Hello from Xamarin.Android",null,null);
      var smsUri = Android.Net.Uri.Parse("smsto:1234567890");
      var smsIntent = new Intent (Intent.ActionSendto, smsUri);
      smsIntent.PutExtra ("Hello from Xamarin.Android");

    • SmsManager.Default.SendTextMessage ("1234567890",null,"Hello from Xamarin.Android",null,null);
      var smsUri = Android.Net.Uri.Parse("smsto:1234567890");
      var smsIntent = new Intent (Intent.ActionSendto, smsUri);
      smsIntent.PutExtra ("sms_body", "Hello from Xamarin.Android");
      StartActivity (smsIntent);

    • SmsManager.Default.SendTextMessage ("1234567890",null,null);
      var smsUri = Android.Net.Uri.Parse("smsto:1234567890");
      var smsIntent = new Intent (Intent.ActionSendto, smsUri);
      smsIntent.PutExtra ("sms_body", "Hello from Xamarin.Android");
      StartActivity (smsIntent);

    • SmsManager.SendTextMessage ("1234567890",null,"Hello from Xamarin.Android",null,null);
      var smsUri = Android.Net.Uri.Parse("smsto:1234567890");
      var smsIntent = new Intent (Intent.ActionSendto);
      smsIntent.PutExtra ("sms_body", "Hello from Xamarin.Android");

Question

How can you show google map view in Xamarin.android?

Answer
    • MapFragment mapFrag = (MapFragment) FragmentManager.FindFragmentById(my_mapfragment_container);
      GoogleMap map = mapFrag.Map;
      if (map != null) {}

    • MapFragment mapFrag = FragmentManager.FindFragmentById(Resource.Id.my_mapfragment_container);
      GoogleMap map = mapFrag.Map;
      if (map != null) {}

    • MapFragment mapFrag = (MapFragment) FragmentManager.FindFragmentById(Resource.Id.my_mapfragment_container);
      GoogleMap map = mapFrag.Map;
      if (map != null) {}

    • MapFragment mapFrag = (MapFragment) FragmentManager (Resource.Id.my_mapfragment_container);
      GoogleMap map = mapFrag.Map;
      if (map != null) {}

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO