1 | svoid swingOpenPhoneFile(S path) { |
2 | swingOpenPhoneFile(gateway(), path); |
3 | } |
4 | |
5 | svoid swingOpenPhoneFile(S ip , S path) { |
6 | byte[] data = readFileFromPhone(ip, path); |
7 | File f = prepareCacheProgramFile(md5(data) + ".data"); |
8 | saveBinaryFile(f, data); |
9 | if (isPNG(data)) |
10 | showImage(path, loadBufferedImage(f)); |
11 | else |
12 | showText(path, fromUtf8(data)); |
13 | } |
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: | #1004675 |
Snippet name: | swingOpenPhoneFile - open random file from phone graphically |
Eternal ID of this version: | #1004675/1 |
Text MD5: | f804d93008f9cc342f5a148a825d0a93 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-21 12:58:55 |
Source code size: | 366 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 632 / 579 |
Referenced in: | [show references] |