Back to project page Gloomy-Dungeons-3D.
The source code is released under:
MIT License
If you think the Android project Gloomy-Dungeons-3D 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 zame.game.engine; // w w w.ja v a2s.c o m import android.content.Context; import android.widget.Toast; import java.io.File; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; import zame.game.Common; import zame.game.R; import zame.game.ZameApplication; public class GameHelper { public static String initPaths(Context appContext) { String externalStoragePath = String.format( Locale.US, "%1$s%2$sAndroid%2$sdata%2$sorg.zamedev.gloomydungeons1hardcore.common", Game.getExternalStoragePath(), File.separator ); File externalStorageFile = new File(externalStoragePath); if (!externalStorageFile.exists()) { externalStorageFile.mkdirs(); } return externalStoragePath; } }