Wednesday, November 27, 2013

MonkeyTalk seems not to support supportRequestWindowFeature, mOnTabChangeListener yet



MonkeyTalk android agent version 1.0.58

        supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
yields my application crashes.

Someone suggests we call requestWindowFeature before super.onCreate.
http://stackoverflow.com/questions/16939814/android-util-androidruntimeexception-requestfeature-must-be-called-before-add
But, for me, it crashed due to the NullPointerException.

I just removes
        supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
when I weaves the MonkeyTalk agent.

I think
http://stackoverflow.com/questions/18388869/my-app-is-crashing-after-installing-the-monkeytalk-agent
is the same problem.

OnTabChangeListener "mOnTabChangeListener" makes my application crash, too.
I rename it with a some other name.

11-19 15:26:24.915: E/AndroidRuntime(1617): FATAL EXCEPTION: main
11-19 15:26:24.915: E/AndroidRuntime(1617): java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: java.lang.IllegalStateException: Unable to assign field mOnTabChangeListener: invalid value for field
11-19 15:26:24.915: E/AndroidRuntime(1617):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
11-19 15:26:24.915: E/AndroidRuntime(1617):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)





No comments:

Post a Comment