Monday, March 26, 2012

Android Tip: android.view.WindowManager$BadTokenException

If you are using an ActivityGroup to display a series of activities, then you may encounter the infamous BadTokenException.

The location where you are getting the exception, will have a "this" usage for the context.

To get over this error, use "this.getParent()".

Eg:  final ProgressDialog pbarDialog = new ProgressDialog( this.getParent() );

Android Tip: Dealing with Droid Spinner Background

Droid seems to have an issue where in the spinner background is white and none of the elements are displayed even though they are available in the spinner.

This error has a workaround at

Friday, March 02, 2012

TIP: Fedora: No packages marked for update

1) Your fedora distribution may have been EOL.  No more packages are available. You need to upgrade your version.    OR
2) Your yum cache is out of date and needs a refresh.

$ sudo yum clean expire-cache
$ sudo yum update