Android Intent Create to(Context context, Class cls)

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

Description

to

Declaration

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

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);//  www . ja v a  2 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. createNotification(Intent resultIntent, Context current, final Class destination)
  2. getExtraObject(Activity context, String key)
  3. gotoHome(Context context)
  4. locate(Context context, String chooserTilte, String lat, String lng, String addr)
  5. putParamters(Intent intent, Object[] parameters)
  6. to(Context context, Class cls, Bundle data)
  7. putParamters(Intent intent, Object[] parameters)
  8. intentCall(Activity activity, String phoneNumber)
  9. intentDIY(Activity activity, Class classes)