Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1016537 - actualUserHome

JavaX fragment (include)

static String actualUserHome_value;
static String actualUserHome() {
  if (actualUserHome_value == null) {
    if (isAndroid())
      actualUserHome_value = "/storage/emulated/0/";
    else
      actualUserHome_value = System.getProperty("user.home");
  }
  ret actualUserHome_value;
}

static File actualUserHome(S sub) {
  ret newFile(new File(actualUserHome()), sub);
}

Author comment

Began life as a copy of #1000569

download  show line numbers  debug dex   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nazvggbglmsf, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1016537
Snippet name: actualUserHome
Eternal ID of this version: #1016537/3
Text MD5: c16df521bd094f14220503da188cd9a0
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-10 15:20:16
Source code size: 385 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 200 / 271
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016537 & http://1016537.tinybrain.de