How to make my activity transparent?
<p>I am making a keyboard ( InputMethodService ), which needs to launch a dialog.</p>

<p>As I found out, a service can not launch a dialog. So I made a separate activity which is called from the service by</p>

<pre><code>                Intent dialogIntent = new Intent(getBaseContext(), dialog.class);
                dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                getApplication().startActivity(dialogIntent);
</code></pre>

<p>and show a dialog. The problem is that this activity replaces the previous one, where the user was typing something.</p>

<p>What do you think would be the best way to make it "transparent" ( i.e. not to push away the previous activity ) and also what would be the best way for this activity to talk back to the service, saying that dialog option was picked.</p>

<p>Thanks! :)</p>

<p><img src="http://i.stack.imgur.com/dGB2P.jpg" alt="enter image description here"></p>
