Thursday, November 24, 2011

Android: java.lang.IllegalStateException: Target host must not be null, or set in parameters.

I must admit that I spent more than 20 minutes on this issue. Oddly enough, this exception does not occur when launching a Widget for the first time -- it only happens after you remove the widget then restore it. That is why I'm a little perplexed as to why it happens in some cases but not in others. Anyhow, this post describes the problem and the resolution accurately. After reading this blog, the issue went away in, oh... 30 seconds.

Monday, November 21, 2011

Android: INSTALL_FAILED_ALREADY_EXISTS

This was a vexing issue with a simple solution. Basically, I attempted to install an APK on a real device and received, "". Since I had never installed it previously, I was perplexed, but I tried renaming the APK, using "adb uninstall", all without success.

Then, this solution simply suggested that you install over the previous installation (as absurd as that sounds). Fortunately, it worked like a charm.