Guest User

Untitled

a guest
Nov 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class WelcomeActivity extends AppCompatActivity {
  2.  
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6. setContentView(R.layout.activity_welcome);
  7.  
  8. String folderB = "bookfiles_"+1;
  9.  
  10. File bookfolder = new File(Environment.getExternalStorageDirectory(), folderB);
  11.  
  12. if(!bookfolder.exists()){
  13. bookfolder.mkdir();
  14. Log.d("my", "dir. created");
  15. }
  16. else {
  17. Log.d("my", "dir. already exists");
  18. }
  19.  
  20. }
  21. }
  22.  
  23. 11-22 22:55:11.929 16566-16566/? E/Zygote: v2
  24. 11-22 22:55:11.930 16566-16566/? E/Zygote: accessInfo : 0
Add Comment
Please, Sign In to add comment