2013-6-3 10:40
public void update(Person person) { SQLiteDatabase db = dbOpenHelper.getWritableDatabase(); db.execSQL( "update person set name=? phone=? where personid=?", new Object[] { person.getName(), person.getPhone(), person.getId() }); }
sql语句错误
解决方法:
public void update(Person person) { SQLiteDatabase db = dbOpenHelper.getWritableDatabase(); db.execSQL( "update person set name=?, phone=? where personid=?", new Object[] { person.getName(), person.getPhone(), person.getId() }); }
单击“Android JUnit Test”运行后会,会出现如下警告:
It outputs Warning: No instrumentation runner found for the launch, using
android.test.InstrumentationTestRunner.
模拟器不能记住Androidmanifest的配置,在运行时需要重新设置运行配置,如下:
1.在工程名字上点击右键,选择properties
2.在Run/Debug setting列表中删除全部配置,这些配置在每次单击“Android JUnit Test”运行后会自已生成的。
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
获取tv_ie对象时候复制上面的忘记更改强转类型
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4.0中不能再主线程运行