equal
deleted
inserted
replaced
46 this.requestWindowFeature(Window.FEATURE_NO_TITLE); |
46 this.requestWindowFeature(Window.FEATURE_NO_TITLE); |
47 setContentView(R.layout.signature); |
47 setContentView(R.layout.signature); |
48 |
48 |
49 tempDir = Environment.getExternalStorageDirectory() + "/" + getResources().getString(R.string.external_dir) + "/"; |
49 tempDir = Environment.getExternalStorageDirectory() + "/" + getResources().getString(R.string.external_dir) + "/"; |
50 ContextWrapper cw = new ContextWrapper(getApplicationContext()); |
50 ContextWrapper cw = new ContextWrapper(getApplicationContext()); |
51 File directory = cw.getDir(getResources().getString(R.string.external_dir), Context.MODE_PRIVATE); |
51 //File directory = cw.getDir(getResources().getString(R.string.external_dir), Context.MODE_PRIVATE); |
|
52 File directory = new File(tempDir); |
52 |
53 |
53 prepareDirectory(); |
54 prepareDirectory(); |
54 uniqueId = getTodaysDate() + "_" + getCurrentTime() + "_" + Math.random(); |
55 uniqueId = getTodaysDate() + "_" + getCurrentTime() + "_" + Math.random(); |
55 current = uniqueId + ".png"; |
56 current = uniqueId + ".png"; |
56 mypath= new File(directory,current); |
57 mypath= new File(directory,current); |