Back to project page EnergyWastingApp.
The source code is released under:
Copyright ? 2013-2014 Pekka Ekman <pekka.ekman@aalto.fi> 2013 Babujee Jerome Robin <robin.babujeejerome@aalto.fi> Permission is hereby granted, free of charge, to any person obtaining a ...
If you think the Android project EnergyWastingApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fi.aalto.pekman.energywastingapp.components; /* ww w.j a v a 2 s . c o m*/ import java.io.File; public class AppDirFileWriter extends AbstractFileWriter { @Override public String getName() { return "Write file (app directory)"; } @Override protected File getPath() { File dir = context.getCacheDir(); if (dir == null) dir = context.getFilesDir(); if (dir == null) dir = new File("/tmp"); return dir; } }