Java tutorial
//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; } }