title: How to launch an app from another in Xamarin forms
body: <p>Im trying to launch an app that I've created from another app that Im working on right now. The thing is I've been searching throught the internet and found something but it did not work so Im seeking help in here.</p>
  
  <p>This is what I've done on the app I want to launch from :</p>
  
  <p>On my xaml.cs :</p>
  
  <pre><code>public async void GoToDigDitApp(object sender, EventArgs e)
          {
              var appname = "digdit://";
              var result = await DependencyService.Get&lt;IAppHandler&gt;().LaunchApp(appname);
          } 
  </code></pre>
  
  <p>I created an Interface:</p>
  
  <pre><code>    public interface IAppHandler
      {
          Task&lt;bool&gt; LaunchApp(string uri);
      }
  </code></pre>
  
  <p>In the Android project:</p>
  
  <pre><code>
  [assembly: Dependency(typeof(OpenAppAndroid))]
  namespace SupervisingApp.Droid
  {
      [Activity(Label = "OpenAppAndroid")]
      public class OpenAppAndroid : Activity, IAppHandler
      {
          public Task&lt;bool&gt; LaunchApp(string uri)
          {
              bool result = false;
              try
              {
                  var aUri = Android.Net.Uri.Parse(uri.ToString());
                  var intent = new Intent(Intent.ActionView, aUri);
                  Android.App.Application.Context.StartActivity(intent);
  
  
                  result = true;
              }
              catch (ActivityNotFoundException)
              {
                  result = false;
              }
              return Task.FromResult(result);
          }
      }
  }
  </code></pre>
  
  <p>And This is the app I want to launch manifest :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.Tab2" android:installLocation="auto"&gt;
     &lt;uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /&gt;
     &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
     &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
     &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
     &lt;application android:label="Dig Dit" android:icon="@drawable/ic_launcher"&gt;
         &lt;activity android:icon="@drawable/ic_launcher" android:label="Dig Dit" android:name="digdit.urlentryclass"&gt;
             &lt;intent-filter&gt;
                 &lt;action android:name="android.intent.action.VIEW" /&gt;
                 &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                 &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
                 &lt;data android:scheme="digdit" /&gt;
             &lt;/intent-filter&gt;
         &lt;/activity&gt;
     &lt;/application&gt;
  &lt;/manifest&gt;
  
  </code></pre>
  
  <p>For now Im only intressted by the Android part and it doesn't seem to work. I hope you guys can help me out.</p>