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

16
LINES

< > BotCompany Repo | #1000963 // hotwire using internalBot (CURRENT in core)

JavaX fragment (include)

static Class<?> hotwire(String src) {
  if (isAndroid()) {
    Class j = getJavaX();
    synchronized(j) { // hopefully this goes well...
      List<File> libraries = new ArrayList<File>();
      File srcDir = (File) call(j, "transpileMain", src, libraries);
      if (srcDir == null)
        fail("transpileMain returned null (src=" + quote(src) + ")");
    
      Object androidContext = get(j, "androidContext");
      return (Class) call(j, "loadx2android", srcDir, src);
    }
  }
    
  ret hotwire_overInternalBot(src);
}

Author comment

Began life as a copy of #1000631

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
1124 stefan Note: hotwire sets the variable programID to the loaded program's ID (not the outer one's). 2015-10-11 15:09:17

add comment

Snippet ID: #1000963
Snippet name: hotwire using internalBot (CURRENT in core)
Eternal ID of this version: #1000963/3
Text MD5: 156dec4e61ed48312af257de29dc6f4c
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-15 13:17:38
Source code size: 543 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 856 / 7496
Version history: 2 change(s)
Referenced in: [show references]