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

14
LINES

< > BotCompany Repo | #1005580 // loadPageThroughProxy, real, using adb + Awareness on phone

JavaX fragment (include)

static final bool loadPageThroughProxy_enabled = true;

static S loadPageThroughProxy(S url) {
  adbForward();
  DialogIO io = talkToOpt("localhost", 4995); // Test ADB Bridge
  if (io == null)
    io = talkToOpt(gateway(), 4999); // Phone, Public Comm Bot
  if (io == null) ret null;
  S answer = unquote(io.ask(forward("Awareness", format("loadPage *", url))));
  io.close();
  if (swic(answer, "ok "))
    ret answer.substring(3);
  fail(answer);
}

Author comment

Began life as a copy of #1004454

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1005580
Snippet name: loadPageThroughProxy, real, using adb + Awareness on phone
Eternal ID of this version: #1005580/1
Text MD5: 7af7d18c424333b6af6be238c29c8428
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-28 14:53:01
Source code size: 464 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 575 / 506
Referenced in: