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.
Just add the Eula.show(this);
line after setting the content view as below:
this.setContentView(R.layout.reader_activity); Eula.show(this); // show the eula
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.