Advertisement
kunnu

Untitled

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