Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- SimpleDateFormat sdf = new SimpleDateFormat(
- "yyyy-MM-dd", Locale.US);
- String currentDateandTime = sdf.format(new Date());
- final File path = new File(Environment.getExternalStorageDirectory(), "SMOK_komunal");
- if (!path.exists()) {
- path.mkdir();
- }
- Log.e("path ", path.getAbsolutePath());
- Runtime.getRuntime().exec("logcat -f " + path + File.separator + "dbo_logcat_" + currentDateandTime + ".txt");
- } catch (IOException e) {
- e.printStackTrace();
- }
- Log.e("path ", path.getAbsolutePath()+currentDateandTime );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement