Example usage for android.app Activity startActivity

List of usage examples for android.app Activity startActivity

Introduction

In this page you can find the example usage for android.app Activity startActivity.

Prototype

@Override
public void startActivity(Intent intent) 

Source Link

Document

Same as #startActivity(Intent,Bundle) with no options specified.

Usage

From source file:Main.java

public static void dial(String tel, Activity activity) {
    activity.startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel)));
}

From source file:Main.java

public static void openWifi(Activity context) {
    context.startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));
}

From source file:Main.java

public static void openSetting(Activity paramActivity) {
    paramActivity.startActivity(new Intent("android.settings.WIFI_SETTINGS"));
}

From source file:Main.java

/**
 * Launch activity class// w ww . j  av  a 2  s.c o m
 *
 * @param clazz
 */
public static void launchActivity(Class<?> clazz, Activity activity) {
    activity.startActivity(new Intent(activity, clazz));
}

From source file:Main.java

public static void pushActivity(Activity var0, Intent var1) {
    var0.startActivity(var1);
}

From source file:Main.java

public static void startActivity(Activity activity, Class clz) {
    activity.startActivity(new Intent(activity, clz));
}

From source file:Main.java

public static void startWirelessSetting(Activity activity) {
    activity.startActivity(new Intent("android.settings.WIRELESS_SETTINGS"));
}

From source file:Main.java

public static void startSDCardSetting(Activity activity) {
    activity.startActivity(new Intent("android.settings.MEMORY_CARD_SETTINGS"));
}

From source file:Main.java

public static void startIntentActivityAndFinish(Activity activity, Intent intent) {
    activity.startActivity(intent);
    activity.finish();
}

From source file:Main.java

public static void startActivityAndFinishSelf(Activity activity, Class clz) {
    activity.startActivity(new Intent(activity, clz));
    activity.finish();//from  ww  w .j av  a2 s  . co  m
}