title: Xamarin run activity from other project in same solution
body: <p>I have a xamarin solution with two android projects. I would like to run android activity in project1 from project2. I ‘ve seen threads related to this topic (like <a href="https://stackoverflow.com/questions/14596999/how-to-call-an-activity-in-another-project">How to call an activity in another project?</a>
  <a href="https://stackoverflow.com/questions/32005223/call-activity-from-another-project">Call activity from another project</a>) and tried many suggested solutions but In the end I always get „Android.Content.ActivityNotFoundException: 'Unable to find explicit activity class {companyname.project2/companyname.project2.Droid.View.LoginView}; have you declared this activity in your AndroidManifest.xml?'” error. Is this possible in xamarin if yes how? Am I doing something wrong? Here is my source code:</p>
  
  <p>Project1:</p>
  
  <pre><code>namespace BigAppManager {
  
      [Activity (MainLauncher = true, Name = "com.companyname.bigappmanager.MainActivity", Label = " Logowanie", ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, NoHistory = true, LaunchMode = LaunchMode.SingleInstance)]
      public class MainActivity : MvxActivity&lt;MainActivityViewModel&gt; {
  
          protected override void OnCreate (Bundle savedInstanceState) {
              base.OnCreate (savedInstanceState);
              Xamarin.Essentials.Platform.Init (this, savedInstanceState);
              
              SetContentView (Resource.Layout.activity_main);
              Button button = FindViewById&lt;Button&gt; (Resource.Id.button);
  
              button.Click += ClickButton;
          }
  
          private void ClickButton (object sender, EventArgs e) {
    
              //Intent intent = new Intent("companyname.project2.Droid.View.LoginView");
              //StartActivity(intent);
              Intent intent = new Intent (Intent.ActionMain);
              intent.AddCategory (Intent.CategoryLauncher);
              // intent.SetClassName("companyname.project2", "companyname.project2.Droid.View.LoginView");
              intent.SetComponent (new ComponentName ("companyname.project2", "companyname.project2.Droid.View.LoginView"));
              StartActivity (intent);
  
          }
  
          public override void OnRequestPermissionsResult (int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults) {
              Xamarin.Essentials.Platform.OnRequestPermissionsResult (requestCode, permissions, grantResults);
  
              base.OnRequestPermissionsResult (requestCode, permissions, grantResults);
          }
      }
  }
  </code></pre>
  
  <p>Project2:</p>
  
  <p>    </p>
  
  <pre><code>[Activity(Name = "companyname.project2.Droid.View.LoginView", Label = " Logowanie", ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, NoHistory = true, LaunchMode = LaunchMode.SingleInstance)]
      public class LoginView : MvxActivity&lt;LoginViewModel&gt;
      {
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
  
              SetContentView(Resource.Layout.LoginView);
  
          }
      }
  </code></pre>
  
  <p>Project 2 android manifest intent filter:</p>
  
  <pre><code>&lt;activity android:name="companyname.project2.Droid.View.LoginView"&gt;
        &lt;intent-filter&gt;
          &lt;action android:name="companyname.project2.View.LoginView"&gt;&lt;/action&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>