Android应用程序是空白的,无需在Lollipop 5.0的调试中运行它

时间:2014-12-02 06:03:10

标签: android debugging fragment android-5.0-lollipop

我在Lollipop开发Android应用时遇到问题。我正在使用Nexus 7(2012)。

如果我的应用程序是从eclipse运行(运行调试),那么它可以正常工作。但是,如果我在应用程序屏幕(手机上)打开它,它显示空白屏幕(操作栏和抽屉仍在工作)但主要内容(我使用片段)是空白

enter image description here

编辑:

这些是我在MainActivity中加载片段内容的代码:

mStacks = new HashMap<String, Stack<Fragment>>();
    mStacks.put(AppConstant.TEST_FRAGMENT, new Stack<Fragment>());

    Bundle bundle = getIntent().getExtras();
    currentMenu = AppConstant.TEST_FRAGMENT;

    if (bundle != null) {
        currentMenu = bundle.getString(BaseAppConstant.INTENT_AL_SCREEEN_NAME_EXTRA);
    }

    if (currentMenu != null) {
        if (currentMenu.equals(AppConstant.TEST_FRAGMENT))
           pushFragments(new ListFragment(), false, true);
    }

0 个答案:

没有答案