Android Intent Create to(Context context, Class cls, Bundle data)

Here you can find the source of to(Context context, Class cls, Bundle data)

Description

to

Declaration

public static final void to(Context context, Class<?> cls, Bundle data) 

Method Source Code

//package com.java2s;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class Main {
    public static final void to(Context context, Class<?> cls) {
        to(context, cls, null);/*w w w . j a v  a2  s . c o  m*/
    }

    public static final void to(Context context, Class<?> cls, Bundle data) {
        Intent intent = new Intent(context, cls);
        if (data != null) {
            intent.putExtras(data);
        }
        context.startActivity(intent);
    }
}

Related

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