title: How to call an activity in Application Class and waiting until it finishes
body: <p>I would like to inject an activity before the main activiy shows up. I added the following code in OnCreate method in the application class</p>
  
  <pre><code>  [Application]
      public class XYZ: Application
     {
       protected override void OnCreate(Bundle bundle)
       {
               base.OnCreate(bundle);
             Intent intent = new Intent(this, typeof(SplashActivity));
             intent.AddFlags(ActivityFlags.NewTask);
              StartActivity(intent);
             // rest code.. but I dont want it is excuded until my splashactivity 
            closed
        }
     }
  </code></pre>
  
  <p>I cannot find startActivityForResult method in the application class so after StartActivity, the code still is executed that I do not want.
  How can make it stop there and wait until splashscreen is closed.</p>
  
  <p>I am not inderested in doing Splasscreen as a mainlauncher. I just want to inject it with another reasons and there is no another way for me.</p>
  
  <p>Note: its for xamarin but java code is also fine.</p>