I want to save my internal storage file into the folder create by my app . Please some one suggest me how it is possible. My Code :
File sub = new File("/sdcard/myfiles"); sub.mkdirs(); FileOutputStream fout; try { fout = openFileOutput("MyPrefs" ,Context.MODE_PRIVATE); String data="Welcome to Android Internal Storage"; fout.write(data.getBytes()); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }