Tuesday, February 12, 2013

Chartboost SDK & Proguard

UPDATE: This post (both issues) was made obsolete by Chartboost SDK 3.1.5. Follow the integration instructions supplied by Chartboost.

When using Chartboost SDK 3.1.3, ProGuard fails to compile with few warnings. To bypass this issue add the following lines to proguard.cfg:
# Chartboost
-dontwarn com.mongodb.tools.ConnectionPoolStat
-dontwarn com.mongodb.util.management.jmx.JMXMBeanServer
-dontwarn org.bson.types.ObjectId

IMPORTANT: If you're using mediation you might need to add more ProGuard exceptions.

Also, as of Chartboost Android SDK 3.1.3 there's a bug which prevent clicking Chartboost ads on Android 3.0+ (it will hang during the "Loading..." stage after the user clicks an ad). In the logcat the following exception appears: android.os.NetworkOnMainThreadException

Until Chartboost will fix it, just add the following patch to the onCreate method:
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy); 
Note: this requires Android Platform SDK 9+

Sunday, February 10, 2013

Switching users when using Team Foundation Service & Visual Studio

I encountered this problem using Visual Studio 2010, but it might also apply to Visual Studio 2012, Eclipse & Team Foundation Everywhere. It's relevant only to the Team Foundation Service, not Server (for the server, the secret is to clear the "Credentials Manager").

I wanted to switch users, but I could not. Long story short, when I tried to log out I was automatically logged in, when I tried to open my other TFS site I got error TF31003 with the "Use different user" link missing.

The solution:
  1. Close all programs.
  2. Open "Internet Explorer".
  3. Click on "Settings" (the wheel on the right side in my version of IE).
  4. Under "Browsing History", click on "Delete", select "Passwords" and delete.
  5. Next time, NEVER EVER click on "Sign me in next time" in any of Microsoft's services.