Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;

public class Main {
    private static final String SCHEME = "package";

    public static void openMyAppInfo(Context mContext) {
        Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        Uri uri = Uri.fromParts(SCHEME, mContext.getPackageName(), null);
        intent.setData(uri);
        mContext.startActivity(intent);
    }
}