List of usage examples for android.database.sqlite SqliteWrapper checkSQLiteException
@UnsupportedAppUsage public static void checkSQLiteException(Context context, SQLiteException e)
From source file:com.android.mms.ui.ConversationList.java
private void startAsyncQuery() { if (mListAdapter == null) { mListAdapter = new ConversationListAdapter(this.getBaseContext(), null); mListAdapter.setOnContentChangedListener(mContentChangedListener); setListAdapter(mListAdapter);//from ww w . ja v a2 s. co m listView.setRecyclerListener(mListAdapter); } try { setTitle(getString(R.string.refreshing)); setProgressBarIndeterminateVisibility(true); Conversation.startQueryForAll(mQueryHandler, THREAD_LIST_QUERY_TOKEN); } catch (SQLiteException e) { SqliteWrapper.checkSQLiteException(this, e); synchronized (Conversation.cacheThreadLock) { Conversation.cacheThreadLock.notify(); } } }
From source file:com.android.mms.ui.ComposeMessageActivity.java
private void startMsgListQuery(int token) { if (mSendDiscreetMode) { return;//from w ww .jav a 2 s . co m } Uri conversationUri = mConversation.getUri(); if (conversationUri == null) { log("##### startMsgListQuery: conversationUri is null, bail!"); return; } long threadId = mConversation.getThreadId(); if (LogTag.VERBOSE || Log.isLoggable(LogTag.APP, Log.VERBOSE)) { log("startMsgListQuery for " + conversationUri + ", threadId=" + threadId + " token: " + token + " mConversation: " + mConversation); } // Cancel any pending queries mBackgroundQueryHandler.cancelOperation(token); try { // Kick off the new query mBackgroundQueryHandler.startQuery(token, threadId /* cookie */, conversationUri, PROJECTION, null, null, null); } catch (SQLiteException e) { SqliteWrapper.checkSQLiteException(this, e); } }