Back to project page SimpleReader.
The source code is released under:
Apache License
If you think the Android project SimpleReader 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 com.dreamteam.app.wallpaper; //www.ja v a2 s. c o m import java.io.File; import android.content.Context; import android.os.Environment; import com.dreamteam.app.utils.FileUtils; public class WallPaperManager { public String getWallPaperDir(Context context) { String path = null; if(FileUtils.hasSDCard()) { File file = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES); if(file == null || !file.exists()) { file.mkdirs(); } path = file.getAbsolutePath(); }else { path = context.getCacheDir().getAbsolutePath(); } return path; } }