()
| 46 | } |
| 47 | |
| 48 | public static String getWorkingDirectory() |
| 49 | { |
| 50 | final File pictures = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); |
| 51 | File file = new File(pictures, "PerfectShow"); |
| 52 | if(!file.exists()) |
| 53 | file.mkdir(); |
| 54 | else if(file.isFile()) |
| 55 | { |
| 56 | Log.w(TAG, file.getPath() + " is occupied"); |
| 57 | return pictures.getPath(); |
| 58 | } |
| 59 | |
| 60 | return file.getPath(); |
| 61 | } |
| 62 | |
| 63 | public boolean isApplicationInstalled(String packageName) |
| 64 | { |
no outgoing calls
no test coverage detected