Question: I'm writing a simple Twitter example that reads the Twitter Search RSS feed via:

```
http://search.twitter.com/search.rss

```

This works well except that the Description in this contains HTML such as Bold Tags and Link Tags, I have looked at the Atom feed via:

```
http://search.twitter.com/search.atom

```

It also has HTML in the description, is there a version that contains just the plain-text for a Tweet? The documentation is a little vague plus RSS is missing from the formats list even though this works. Is there a secret way into this I just want the raw non-HTMLed Tweet!  

Is this even possible, if not what would be the best way of stripping the HTML out of the string as all I need is the raw tweet.

Answer: 
There is a hack:

```
private void setDimButtons(boolean dimButtons) {
    Window window = getWindow();
    LayoutParams layoutParams = window.getAttributes();
    float val = dimButtons ? 0 : -1;
    try {
        Field buttonBrightness = layoutParams.getClass().getField(
                "buttonBrightness");
        buttonBrightness.set(layoutParams, val);
    } catch (Exception e) {
        e.printStackTrace();
    }
    window.setAttributes(layoutParams);
}

```
I see that this is an old question that was mostly answered in a comment link, but to make it clear to anyone else who comes across this question, here's my own answer.

It's built-in since API 8. ([doc](http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#buttonBrightness))

```
float android.view.WindowManager.LayoutParams.buttonBrightness

```

This is a somewhat modified/simplified version of what I'm using in one of my apps (excluding irrelevant code). The inner class is required to prevent a crash at launch on older platforms that don't support it.

```
private void nightMode() {
    Window win = getWindow();
    LayoutParams lp = win.getAttributes();
    if (prefs.getBoolean("Night", false))
        changeBtnBacklight(lp, LayoutParams.BRIGHTNESS_OVERRIDE_OFF);
    else changeBtnBacklight(lp, LayoutParams.BRIGHTNESS_OVERRIDE_NONE);
    win.setAttributes(lp);
}

private void changeBtnBacklight(LayoutParams lp, float value) {
    if (Integer.parseInt(Build.VERSION.SDK) >= 8) {
        try {
            new BtnBrightness(lp, value);
        } catch (Exception e) {
            Log.w(TAG, "Error changing button brightness");
            e.printStackTrace();
        }
    }
}

private static class BtnBrightness {
    BtnBrightness(LayoutParams lp, float v) {
        lp.buttonBrightness = v;
    }
}

```