Difficult to read text in Android 2.x Dialogs
<p>The following code will make a dialog box with a spinning progress indicator and some text that says "Loading...":</p>

<pre><code>    final ProgressDialog dialog = new ProgressDialog(context );
    dialog.setMessage(context.getString(R.string.loading));
    dialog.show();
</code></pre>

<p>On stock 2.3 and on Samsung TouchWiz, the text is black against a dark background and nearly impossible to read.</p>

<p>If I use <code>dialog.setInverseBackgroundForced(true)</code>, I get a white dialog with black text.  This works great on stock 2.3 and Samsung TouchWiz, but does NOT work on HTC Sense, where the text is visible but the spinner is white on white.</p>

<p>What is the proper way to make a simple ProgressDialog with visible text and progress indicator that will work across all custom skins?</p>
