2017-08-04 24 views
0

は大きい、日付 を作成する私のクエリは次のとおりです。認識されないトークン

String selection=String.valueOf(new Date().getTime()); 
     String[] selectionArgument = {selection}; 

     ContentResolver contentResolver = context.getContentResolver(); 
     Cursor urlDownload = contentResolver.query(
       StubContract.Schedule.schedule_uri, StubContract.Schedule.PROJECTION_MESSAGE, 
       StubContract.Schedule.CREATE_DATE+">=?", 
       selectionArgument, 
       null); 

とエラーログは次のとおりです。

enter image description here

このエラーを解決する方法を助けてください

答えて

0

だけ

String[] selectionArgument = new String[]{selection}; 

String[] selectionArgument = {selection}; 

を変更

+0

はまだ同じエラーを@kapsym –

+0

を働いていないit.butを試してみましたか? –

+0

エラーの右側が何であるかを表示することもできます。完全なエラーをここにコピーする@GhanshyamSharma –

関連する問題