title: Share Intent in Service Class
body: <p>I have <code>Service</code> in my application with share button that opens Share intent:</p>
  
  <pre><code>Intent dialogIntent = new Intent(android.content.Intent.ACTION_SEND);
  dialogIntent.addCategory(Intent.CATEGORY_LAUNCHER);
  dialogIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  
  dialogIntent.setType("text/plain");
  dialogIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, ytf.getTitle());
  startActivity(dialogIntent);
  </code></pre>
  
  <p>It's called from my Service class and I get this <code>Exception</code>:</p>
  
  <pre><code>Caused by: java.lang.RuntimeException: Unable to start service com.services.BackgroundPlayerService@95236fd with Intent { cmp=com.dev/com.services.BackgroundPlayerService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) }: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND cat=[android.intent.category.LAUNCHER] typ=text/plain flg=0x10000001 launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } clip={text/plain T:Watch "CHVRCHES - Get Out (Preview)"
  </code></pre>
  
  <p>Any idea where is the problem?</p>