Cocos2d-x back to Android game black screen solution

Source: Internet
Author: User

Back to Android game black Screen Solution
These days stroll cocos2d-x.org forum, found that the author of Cocos2d-x released a post to solve the problem of returning Android game loading resources when the black screen. The post is estimated to be sinking some days, so turn it out for later query.
Three files need to be modified:
1) cocos2dx/platform/ccplatformmacros.h

Modify Line84 to #define CC_ENABLE_CACHE_TEXTURE_DATA 0


2) Cocos2dx/platform/android/java/src/org/cocos2dx/lib/cocos2dxglsurfaceview.java
Comment out the Line167.


3) Android Engineering directory under Jin/hellocpp/main.cpp
Comment out the line32~43.

4) Modify the configuration file Androidmenifest.xml
Activity android:launchmode= "SingleInstance"
The problem is solved.

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.