[英]My application runs fine on emulator 2.1/2.2 but not on a 2.2 device
Ive written an app and had the build target set as Gingerbread. 我编写了一个应用程序,并将构建目标设置为Gingerbread。 Ive followed the beginning android games book and so the opengles ive used is v1.0.
Ive遵循了开始的android游戏书,因此使用的opengles ive是v1.0。 Ive not written any specific features that need v2.3 or up.
我没有编写任何需要v2.3或更高版本的特定功能。 The min sdk is v7 and the target is 10. THe app runs perfectly on my gingerbread phone and ICS tablet.
最小SDK为v7,目标为10。该应用程序可以在我的姜饼手机和ICS平板电脑上完美运行。 It runs fine on the 2.1 and 2.2 emulator.
它可以在2.1和2.2模拟器上正常运行。 But on on a 2.2 device(a motorola).
但是在2.2设备(摩托罗拉)上。 THe app installs fine but hangs on a white screen?
该应用可以很好地安装但挂在白屏上吗? Any ideas?
有任何想法吗? thanks
谢谢
Enable USB debugging on your phone then run your app on your phone instead of the emulator. 在手机上启用USB调试,然后在手机上而不是模拟器上运行应用程序。 and see what errors come up on the cat log
并查看cat日志上出现了什么错误
I found the problem. 我发现了问题。 I thought i had my texture dimensions at power of two values.
我以为我的纹理尺寸是两个值的幂。 But I didnt.
但是我没有。 Rescaled and it works fine
重新缩放,效果很好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.