问题描述
实际上我的问题是相同的张贴在的问题是:the同样的问题
但没有答案了。
这是我的问题:
我刚刚建成使用煎茶触摸和应用程序;手机的差距。它运行良好,在我的Galaxy Tab,但是当我旋转为纵向或横向,它将会崩溃。
我已经加入:
安卓configChanges =方向| keyboardHidden
在我的清单文件,但它仍然会崩溃,当我旋转。
我不知道怎么会发生这种事。
有人能帮助我吗?
注:
我使用
- 银河标签
- 煎茶触摸1.1
- 电话缺口1.2
您应该有
安卓configChanges =keyboardHidden |方向|屏幕布置
而不是
安卓configChanges =方向| keyboardHidden
您在清单活动
Actually my problem is the same as the question posted in :the same problem
But there is no answer yet..
Here is the problem I got :
I've just built an application using sencha touch & phone gap. It runs well on my galaxy tab but when I rotate it to portrait or landscape, it is going crash.
I have added :
android:configChanges="orientation|keyboardHidden"
on my manifest file but it is still going crash when I rotate it.
I don't know how could this happen.
Could someone help me?
Note :
I'm using
- Galaxy tab
- Sencha-touch 1.1
- Phone gap 1.2
You should have
android:configChanges="keyboardHidden|orientation|screenLayout"
instead of
android:configChanges="orientation|keyboardHidden"
to your activity in the manifest
这篇关于应用程序崩溃时的方向变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!