0

I have to develop one BBC_NEWS_READER android application from here

The app is force closed while run the application also gave me following error. The error is :

       E/WindowManager(17630): Activity com.digitallizard.bbcnewsreader.ReaderActivity 
      has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4a4dc
       760 that was originally added here

        E/WindowManager(17630): android.view.WindowLeaked: Activity 
        com.digitallizard.bbcnewsreader.ReaderActivity has leaked window
        com.android.internal.policy.impl.PhoneWindow$DecorView@4a4dc760 that was originally 
        added here
            at android.view.ViewRoot.<init>(ViewRoot.java:247)

        E/WindowManager(17630):     at android.app.Dialog.show(Dialog.java:241)
         com.digitallizard.bbcnewsreader.Eula.show(Eula.java:87)

         E/WindowManager(17630):    at 
         com.digitallizard.bbcnewsreader.ReaderActivity.onCreate(ReaderActivity.java:444)

How can i resolve these error??? please help me.i have used same code as that github project.

4

1 回答 1

0

只需Eula.show(this);在设置内容视图后添加该行,如下所示:

 this.setContentView(R.layout.reader_activity);
    Eula.show(this); // show the eula
于 2013-02-08T05:59:31.813 回答