1 | static long makeAndroidTempDir_lastValue; |
2 | |
3 | static File makeAndroidTempDir() { |
4 | File dir = new File((File) call(androidContext, "getFilesDir"), |
5 | ".javax/" + makeAndroidTempDir_newValue()); |
6 | dir.mkdirs(); |
7 | return dir; |
8 | } |
9 | |
10 | static long makeAndroidTempDir_newValue() { |
11 | long value; |
12 | do |
13 | value = System.currentTimeMillis(); |
14 | while (value == makeAndroidTempDir_lastValue); |
15 | makeAndroidTempDir_lastValue = value; |
16 | return value; |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004181 |
Snippet name: | makeAndroidTempDir - in app-internal space |
Eternal ID of this version: | #1004181/1 |
Text MD5: | 3c9b84820357786bfa14ee20190278f3 |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-09 15:24:58 |
Source code size: | 450 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 507 / 505 |
Referenced in: | [show references] |