Problem: activity has leaked window Android. widget. relativelayout @ 407cd588 that was originally added here

Source: Internet
Author: User

The following error message is found in logcat during finish (); activity:

09:41:35 from 11 to 10. 956: Error/windowmanager (2117): Android. view. windowleaked: Activity COM. crintv. android. pad. UI. video. crintvplayactivity has leaked window android. widget. linearlayout @ 40899438 that was originally added here

11-10 09:41:35. 956: Error/windowmanager (2117): at Android. View. viewroot. <init> (viewroot. Java: 276)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. View. windowmanagerimpl. addview (windowmanagerimpl. Java: 152)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. View. windowmanagerimpl. addview (windowmanagerimpl. Java: 95)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. View. Window $ localwindowmanager. addview (window. Java: 514)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. widget. popupwindow. invokepopup (popupwindow. Java: 933)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. widget. popupwindow. showatlocation (popupwindow. Java: 793)
11-10 09:41:35. 956: Error/windowmanager (2117): At com. crintv. Android. Pad. UI. Video. crintvplayactivity $2. queueidle (crintvplayactivity. Java: 210)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. OS. messagequeue. Next (messagequeue. Java: 165)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. OS. Looper. Loop (lomanager. Java: 116)
11-10 09:41:35. 956: Error/windowmanager (2117): at Android. App. activitythread. Main (activitythread. Java: 3997)
11-10 09:41:35. 956: Error/windowmanager (2117): At java. Lang. Reflect. method. invokenative (native method)
11-10 09:41:35. 956: Error/windowmanager (2117): At java. Lang. Reflect. method. Invoke (method. Java: 491)
11-10 09:41:35. 956: Error/windowmanager (2117): At com. Android. Internal. OS. zygoteinit $ methodandargscaller. Run (zygoteinit. Java: 841)
11-10 09:41:35. 956: Error/windowmanager (2117): At com. Android. Internal. OS. zygoteinit. Main (zygoteinit. Java: 599)
11-10 09:41:35. 956: Error/windowmanager (2117): At Dalvik. system. nativestart. Main (native method)

09:41:35 from 11 to 10. 976: Error/windowmanager (2117): Activity COM. crintv. android. pad. UI. video. crintvplayactivity has leaked window android. widget. relativelayout @ 407cd588 that was originally added here

The error message shows the popupwindow in the activity, but the popupwindow is not closed when the activity exits.

Solution:

Close the displayed popupwindow when exiting the activity. Method: topbarwindow. Dismiss ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.