Example usage for android.content Context startActivity

List of usage examples for android.content Context startActivity

Introduction

In this page you can find the example usage for android.content Context startActivity.

Prototype

public abstract void startActivity(@RequiresPermission Intent intent);

Source Link

Document

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

Usage

From source file:Main.java

public static void showDocumentation(Context c) {
    c.startActivity(docIntent);
}

From source file:Main.java

public static void openNetworkSetting(Context context) {
    context.startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));
}

From source file:Main.java

public static void showGpsOptions(Context context) {
    context.startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));
}

From source file:Main.java

public static void startService(Context context) {
    context.startActivity(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS));
}

From source file:Main.java

public static void openModule(Context context) {
    context.startActivity(new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS));
}

From source file:Main.java

public static void moveToPlayServiceDownloadPage(Context context) {
    context.startActivity(getPlayServicesIntent());
}

From source file:Main.java

public static void goToAccessibilitySetting(Context context) {
    context.startActivity(
            new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}

From source file:Main.java

public static void startActivity(Context context, Class cla) {
    context.startActivity(new Intent(context, cla));
}

From source file:Main.java

public static void runPackge(Context context, String pkg) {
    context.startActivity(context.getPackageManager().getLaunchIntentForPackage(pkg));
}

From source file:Main.java

public static void toBrowserView(Context context, String url) {
    context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
}