Category: Android
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
Android Continuous Integration with ANT and Jenkins: Part 1
posted in Android, Blog and tagged android, ANT, jenkis, mobile by Ilya Ber.
Recently we’ve started a new Android project for one of our customers, and since we are using a proper development workflow, I’ve began with setting up Continuous Integration (CI) as a part of the process. I’m going to tell you a little more than just the technical details about how to set up CI server and build an application there, what I’ll tell you is how we, at Black River, manage development and testing processes using Jenkins. In this article, I’ll … read more