Code example for AsyncQueryHandler

Methods: cancelOperation

0
			SQLiteWrapper.checkSQLiteException(mContext, e);
		} 
	} 
 
	public static void startQueryForAll(AsyncQueryHandler handler, int token) {
		handler.cancelOperation(token);
 
		// This query looks like this in the log: 
		// I/Database( 147): 
		// elapsedTime4Sql|/data/data/com.android.providers.telephony/databases/ 
		// mmssms.db|2.253 ms|SELECT _id, date, message_count, recipient_ids, 
		// snippet, snippet_cs, 
		// read, error, has_attachment FROM threads ORDER BY date DESC 
 
		startQuery(handler, token, null);
	} 
 
	public static void startQuery(AsyncQueryHandler handler, int token,
			String selection) {
		handler.cancelOperation(token);