How to handle a silent SEND intent with a headless activity
<p>Just as the user who asked this: <a href="http://stackoverflow.com/questions/3320930/how-does-the-default-browser-on-android-send-send-intents">How does the default browser on Android send &quot;SEND&quot; intents?</a>, I want my Android app to process a silent send. I implemented the proposed solution, a headless activity that never calls setContentView():</p>

<pre><code>public class IntentMgrAct extends Activity {
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       // setContentView explicitally ommited
       Toast.makeText(getApplicationContext(), "Message sent", Toast.LENGTH_LONG).show();
   }
}
</code></pre>

<p>When other apps send the intent to my "dumb" activity, it shows up behind the toast, but all I want is the toast. I tried to hide the headless activity with finish() after Toast.makeText and does the trick, but there is a noticeable flicker. How can I prevent the the activity from showing up?</p>
