Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;
import java.io.IOException;

public class Main {
    static final public String REVERSE_TETHERING_FILE = "/data/data/org.secmem232.phonetop/shared_prefs/isReverseTethering";

    public static boolean saveReverseTethering() {
        File reverseTethering = new File(REVERSE_TETHERING_FILE);
        try {
            reverseTethering.createNewFile();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            return false;
        }
        return true;
    }
}