Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;

public class Main {
    public static String toPath(Context context) {
        String pn = getPackageName(context);
        pn = pn.replace("com.", "");
        return pn.replace(".", "/");
    }

    public static String getPackageName(Context context) {
        return context.getPackageName();
    }
}