時發生SqlException錯誤,此錯誤發生。在光標行上使用
Error:
Caused by: android.database.sqlite.SQLiteException: near ")": syntax
error: , while compiling: SELECT value FROM system WHERE (name=) ORDER BY name
光標看起來是這樣的:
Cursor c = getContentResolver().query(Uri.parse("content://settings/system"),
values, "name=", fields, "name");
if (c != null) {
c.moveToFirst();
long lvalue = c.getLong(0);
if (lvalue > 0) {
m_ScreenSaverDelay = lvalue;
}
然後你.. !!!!!! – SilentKiller
沒問題。如果它幫助你接受答案。享受編程。 – kosa
你確定..... !!!!!! – SilentKiller