Here you can find the source of putParamters(Intent intent, Object[] parameters)
private static void putParamters(Intent intent, Object[] parameters)
//package com.java2s; //License from project: LGPL import android.content.Intent; public class Main { private static void putParamters(Intent intent, Object[] parameters) { if (parameters.length % 2 == 0) { for (int i = 0; i < parameters.length / 2; i += 2) { if (parameters[i] instanceof String && parameters[i + 1] instanceof Long) { intent.putExtra((String) parameters[i], (Long) parameters[i + 1]); }//from w ww .ja va 2 s. c om } } } }