use of com.moez.QKSMS.ui.view.RunnableToast in project qksms by moezbhatti.
the class CopyUnreadMessageTextService method onHandleIntent.
@Override
protected void onHandleIntent(Intent intent) {
Uri threadUri = intent.getParcelableExtra(EXTRA_THREAD_URI);
String messages = SmsHelper.getUnreadMessageText(this, threadUri);
((ClipboardManager) getSystemService(CLIPBOARD_SERVICE)).setPrimaryClip(ClipData.newPlainText(messages, messages));
mHandler.post(new RunnableToast(this, R.string.toast_copy_text, Toast.LENGTH_SHORT));
}
Aggregations