Android Intent Create putParamters(Intent intent, Object[] parameters)

Here you can find the source of putParamters(Intent intent, Object[] parameters)

Description

put Paramters

License

LGPL

Declaration

private static void putParamters(Intent intent, Object[] parameters) 

Method Source Code

//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
            }
        }
    }
}

Related

  1. gotoHome(Context context)
  2. locate(Context context, String chooserTilte, String lat, String lng, String addr)
  3. putParamters(Intent intent, Object[] parameters)
  4. to(Context context, Class cls)
  5. to(Context context, Class cls, Bundle data)
  6. intentCall(Activity activity, String phoneNumber)
  7. intentDIY(Activity activity, Class classes)
  8. intentDIY(Activity activity, Class classes, Map paramMap)
  9. intentDIY(Activity activity, Class classes, int enterAnim, int exitAnim)