Example usage for android.content Intent ACTION_PASTE

List of usage examples for android.content Intent ACTION_PASTE

Introduction

In this page you can find the example usage for android.content Intent ACTION_PASTE.

Prototype

String ACTION_PASTE

To view the source code for android.content Intent ACTION_PASTE.

Click Source Link

Document

Activity Action: Create a new item in the given container, initializing it from the current contents of the clipboard.

Usage

From source file:com.money.manager.ex.common.AllDataListFragment.java

private void showDuplicateTransactionView(ArrayList<Integer> transIds) {
    // validation
    int transactionCount = transIds.size();
    if (transactionCount <= 0)
        return;//from w  w  w  .ja  va 2 s . co  m

    int[] ids = convertArrayListToArray(transIds);
    Intent[] intents = new Intent[transactionCount];
    for (int i = 0; i < transactionCount; i++) {
        intents[i] = new Intent(getActivity(), CheckingTransactionEditActivity.class);
        intents[i].putExtra(EditTransactionActivityConstants.KEY_TRANS_ID, ids[i]);
        intents[i].setAction(Intent.ACTION_PASTE);
    }
    getActivity().startActivities(intents);
}