Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -445,7 +445,8 @@ public class PrintingJob extends PrintDocumentAdapter { | @@ -445,7 +445,8 @@ public class PrintingJob extends PrintDocumentAdapter { | ||
| 445 | public void run() { | 445 | public void run() { |
| 446 | String error = null; | 446 | String error = null; |
| 447 | try { | 447 | try { |
| 448 | - File file = File.createTempFile("printing", null, null); | 448 | + File tempDir = context.getCacheDir(); |
| 449 | + File file = File.createTempFile("printing", null, tempDir); | ||
| 449 | FileOutputStream oStream = new FileOutputStream(file); | 450 | FileOutputStream oStream = new FileOutputStream(file); |
| 450 | oStream.write(data); | 451 | oStream.write(data); |
| 451 | oStream.close(); | 452 | oStream.close(); |
-
Please register or login to post a comment