Archive for August, 2012
Android Continuous Integration with ANT and Jenkins: Part 2
posted in Android, Blog and tagged android, jenkins by Ilya Ber.
In my recent post I wrote about how to build and run unit tests on Android project from command line. These were first steps to setup Continuous Integration for your project, and now I’ll show you how to automate a build with Jenkins. First of all, you’ll need Jenkins CI server installed on your build server (in BlackRiver, we are using Windows Server virtual box for Jenkins main server). Since we are going to build Android project on CI server, we’ll need … read more
Android: annoying exception Unable to add window – is your activity running?
posted in Android, Blog by Ilya Ber.
After publishing one of our apps on Google Play market I started receiving strange exception on Play Console: android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@40b47bd8 is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:452) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:283) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:193) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:118) at android.view.Window$LocalWindowManager.addView(Window.java:532) at android.app.Dialog.show(Dialog.java:269) …android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@40b47bd8 is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:452) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:283) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:193) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:118) at android.view.Window$LocalWindowManager.addView(Window.java:532) at android.app.Dialog.show(Dialog.java:269) … This exception occurred while app was trying to notify user … read more