Openglerror0x0501 error in cocos2dx integrated sdk

Source: Internet
Author: User
A problem occurred while integrating Xiaomi push. When the application is in the background, after the push notification is triggered, a bunch of openglerror0x0501 errors are thrown. Generally, this error is caused by thread switching. This problem is mainly caused by repeated LauncherActivity opening, click the application icon to open it.

A problem occurred while integrating Xiaomi push. When the application is in the background, a bunch of open gl error 0x0501 errors are thrown after the application is started by clicking push notification. Generally, this error is caused by thread switching, this problem occurs mainly because the Launcher Activity is opened repeatedly. Normally, click the application icon to open it, But click push.

A problem occurred while integrating Xiaomi push. When the application is in the background, a bunch of open gl Errors 0x0501 errors are thrown after the application is started by clicking push notification.

Generally, this error is caused by thread switching. This problem is mainly caused by the repeated opening of the Launcher Activity. Normally, opening the application icon does not occur, and clicking push to open the application will lead to repeated opening, the two may have different app opening mechanisms.

Solution:

Add parameters to the start activity field in the AndroidManifest. xml file.

Android: launchMode = "singleInstance"

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.