(Context context, Bundle args)
| 180 | args.putParcelable("uri", getIntent().getData()); |
| 181 | new SimpleTask<File>() { |
| 182 | @Override |
| 183 | protected File onExecute(Context context, Bundle args) throws Throwable { |
| 184 | Uri uri = args.getParcelable("uri"); |
| 185 | |
| 186 | if (uri == null) |
| 187 | throw new FileNotFoundException(); |
| 188 | |
| 189 | File dir = Helper.ensureExists(context, "shared"); |
| 190 | File file = new File(dir, "email.eml"); |
| 191 | |
| 192 | Helper.copy(context, uri, file); |
| 193 | return file; |
| 194 | } |
| 195 | |
| 196 | @Override |
| 197 | protected void onExecuted(Bundle args, File file) { |
nothing calls this directly
no test coverage detected