android中的输入错误
我用android开发了一个应用程序。其输入字段在2.2、2.3中工作正常,例如用户名和密码输入(这将调用服务并获得xml响应),但在4.0、4.1中不起作用 xmlandroid中的输入错误,android,android-layout,Android,Android Layout,我用android开发了一个应用程序。其输入字段在2.2、2.3中工作正常,例如用户名和密码输入(这将调用服务并获得xml响应),但在4.0、4.1中不起作用 xml EditText android:id="@+id/email" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layou
EditText
android:id="@+id/email"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="4"
android:imeOptions="actionNext"
android:singleLine="true"
android:text=""
在错误日志中
Url is not found
(在捕获异常中)
编辑
android 4.1 sdk和更新的eclipse日志cat正在打印
07-03 11:57:07.826: I/Choreographer(2747): Skipped 44 frames!
The application may be doing too much work on its main thread.
这样我就不容易在日志上找到错误了
错误是:
07-03 11:58:25.927: E/ActivityThread(555): Failed to find provider info
for com.android.inputmethod.latin.dictionarypack 07-03 11:58:25.947:
E/BinaryDictionaryGetter(555): Could not find a dictionary pack
如果它在安卓2.2和2.3操作系统上运行良好,那么这个错误可能是由于安卓4.0中更严格的网络策略造成的。在活动/通信类中添加以下静态块将删除4.0中与通信策略相关的问题
static{
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}
粘贴异常堆栈traceokay我将接受答案,但在android 4.1 sdk和更新的eclipse日志中,cat正在打印很多(如07-03 11:57:07.826:i/Choreographer(2747):跳过了44帧!应用程序可能在其主线程上做了太多工作。)。。因此,我无法在日志cat上轻松找到错误。错误是:07-03 11:58:25.927:E/ActivityThread(555):未能找到com.android.inputmethod.latin.dictionarypack 07-03 11:58:25.947:E/BinaryDictionaryGetter(555):找不到字典包的工作sunil,非常感谢您,以及如何在堆栈溢出中接受此内容。我是新用户here@Kstar