Search in sources :

Example 1 with RunnableToast

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));
}
Also used : ClipboardManager(android.content.ClipboardManager) RunnableToast(com.moez.QKSMS.ui.view.RunnableToast) Uri(android.net.Uri)

Aggregations

ClipboardManager (android.content.ClipboardManager)1 Uri (android.net.Uri)1 RunnableToast (com.moez.QKSMS.ui.view.RunnableToast)1