android how to show a dialog for a specific time
<p>Hello I would like to show an alert dialog that shows a counter(timer of time) and after 10 seconds will automatically disappear.</p>

<p>I have:</p>

<pre><code>builder = new AlertDialog.Builder(this);
    builder.setTitle(title);
    builder.setMessage(msg);
    final EditText input = new EditText(this);
    builder.setView(input);
    runOnUiThread(new Runnable() {
        @Override
        public void run() {
            builder.setMessage("ELEOS");
        }
    });
    builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
            dismissDialog(id);
        }
    });
    return builder.create();
</code></pre>

<p>which simply creates the dialog. </p>

<p>regards maxsap</p>
