Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. private void Check() {
  2. String bootanimation = "bootanimation.zip";
  3. String system = "/system/media/";
  4. String data = "/data/local/";
  5. File sd = Environment.getExternalStorageDirectory();
  6. File systemfile = new File(system, bootanimation);
  7. File datafile = new File(data, bootanimation);
  8. if (systemfile.exists()) {
  9. Toast.makeText(getBaseContext(), bootanimation + "located in /system", 0).show();
  10. }
  11. if (datafile.exists()){
  12. Toast.makeText(getBaseContext(), bootanimation + "located in /data", 0).show();
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement