Android: couldn't save which view has focus because the focused view ### has no
来源:互联网 发布:vb 日期格式转string 编辑:程序博客网 时间:2024/06/08 23:42
Android: couldn't save which view has focus because the focused view ### has no id
在把pro.android的包放到ios工程项目之后,编译文件,出现了上面的这个问题。
我使用了下面方案一的解决办法解决了这个问题。
可能引起原因有两种,对应解决方法如下:
解决方案一:
<application
android:icon="@drawable/icon" android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden|keyboard|screenLayout"
android:name=".Main" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
解决方案二:
What probably happened is that you created a thread in the surfaceCreated() method but didn’t stop it or get rid of it in the surfaceDestroy() method.
When you didn’t give a theme for the preferences, it took over the whole screen and your old surface was destroyed. But when you specified a dialog-like theme, the old surface was still there because it was visible underneath the preferences.
public void surfaceCreated(SurfaceHolder holder)
{
if (_thread == null || _thread.getState() == Thread.State.TERMINATED)
{
_thread = new TutorialThread(getHolder(), this);
_thread.setRunning(true);
_thread.start();
}
else
{
_thread.setRunning(true);
_thread.start();
}
}
This solved the problem for me, a thread’s start method cannot be called twice, so I had to reallocate…
- Android: couldn't save which view has focus because the focused view ### has no id
- Android: couldn't save which view has focus because the focused view ### has no
- Android: couldn't save which view has focus because the focused view ### has no id
- The data couldn’t be read because it has been corrupted
- The data couldn’t be read because it has been corrupted
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- The file “***” couldn’t be opened because you don’t have permission to view it
- 解决方案:The file * couldn't be opened because you don't have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- the file couldn't be opened because you don't have permission to view it
- the file couldn't be opened because you don't have permission to view it 解决办法
- The file “xxx” couldn’t be opened because you don’t have permission to view it.
- The file “XXX” couldn’t be opened because you don’t have permission to view it.
- [ios]the file couldn't be opened because you don't have permission to view it
- The file couldn't be opened because you don't have permission to view it.解决办法
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- jquery的innerHeight在chrome下结果不同原因
- 实现一个新浪微博 MID 转换算法
- IT外企那点儿事(21): 为什么受伤的总是我
- 7 WARNING Signs You Chose the Wrong Job
- 关于memset的使用
- Android: couldn't save which view has focus because the focused view ### has no
- C#实现任意源组播与特定源组播
- 逻辑问题
- Oracle 技术网
- Android移植技术!
- JNI介绍
- IT外企那点儿事(22): 跳槽小技巧
- Android显示GIF动画完整示例(二)
- Woring Practice -每次修改进行code review