I realized that the problem occurs because the environment symbol GST_DEBUG_DUMP_DOT_DIR must be set before initializing GStreamer, which is done in the onCreate() method. So I created a native method to set GST_DEBUG_DUMP_DOT_DIR and called it just before calling GStreamer.init(). This fixed the problem. /Ole