Advertisement
kunnu

Untitled

Apr 29th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1.  public Cursor getTestData(words[i])
  2.      {
  3.          try
  4.          {
  5.            
  6.              
  7.              String sql ="SELECT suggest_text_2 FROm FTSdictionary WHERE suggest_text_1='"+words[i]+"'";
  8.              Log.v("word",word);
  9.              Log.v("Query",sql );
  10.  
  11.              Cursor mCur = mDb.rawQuery(sql, null);
  12.              if (mCur!=null)
  13.              {
  14.                 mCur.moveToNext();
  15.              }
  16.              return mCur;
  17.          }
  18.          catch (SQLException mSQLException)  
  19.          {
  20.              Log.e(TAG, "getTestData >>"+ mSQLException.toString());
  21.              throw mSQLException;
  22.          }
  23.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement