摘要: 通常我们的应用只会设计成横屏或者竖屏,锁定横屏或竖屏的方法是在manifest.xml文件中设定属性android:screenOrientation为"landscape"(横屏)或"portrait"(竖屏): <activity android:name="com.example.kata1. 阅读全文
posted @ 2017-12-26 16:59 且说且梦 阅读(2935) 评论(0) 推荐(0)
摘要: 闪退位置为 iter->second(id, *AudioEngine::_audioIDInfoMap[id].filePath); 发现应该是是找不到对应的id 暂时加了个判断处理了下 int id = audioId;auto it = AudioEngine::_audioIDInfoMap 阅读全文
posted @ 2017-12-26 10:28 且说且梦 阅读(623) 评论(0) 推荐(0)
摘要: 头文件我是自动import的可能有不是下面需要的 import android.app.Activity;import android.os.Build;import android.os.Environment;import android.os.StatFs;import android.provider.Settings;import android.text.format.Formatte... 阅读全文
posted @ 2017-10-24 17:00 且说且梦 阅读(1012) 评论(0) 推荐(0)
摘要: 我只是推荐一位大神写的帖子,看了网上那么多感觉都不太好,感觉这个大神写的还行,顺带复制一份防止网址丢失。 帖子的网址: http://blog.csdn.net/ljz2009y/article/details/22895297 很多场景和需求你需要用到手机设备的唯一标识符。 在Android中,有 阅读全文
posted @ 2017-10-24 16:55 且说且梦 阅读(1821) 评论(0) 推荐(0)
摘要: Eclipse: 1. Eclipse中右键,选中Import 2.选中Android文件夹下的目录 3.选择文件,点击Browse 4.选择文件导入 5.选中libcocos2dx ,注意cocos2dx 3.x 需要将 new project Name 那一栏的libcocos2dx 修改为li 阅读全文
posted @ 2017-10-24 16:31 且说且梦 阅读(192) 评论(0) 推荐(0)
摘要: ProgressTimer* _progressTime = ProgressTimer::create(Sprite::createWithSpriteFrameName("")); //创建对象 _progressTime->setType(cocos2d::ProgressTimer::Typ 阅读全文
posted @ 2017-09-05 20:12 且说且梦 阅读(158) 评论(0) 推荐(0)
摘要: git remote -v 阅读全文
posted @ 2017-08-22 15:00 且说且梦 阅读(1797) 评论(0) 推荐(0)