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)

1  
static final bool loadPageThroughProxy_enabled = true;
2  
3  
static S loadPageThroughProxy(S url) {
4  
  adbForward();
5  
  DialogIO io = talkToOpt("localhost", 4995); // Test ADB Bridge
6  
  if (io == null)
7  
    io = talkToOpt(gateway(), 4999); // Phone, Public Comm Bot
8  
  if (io == null) ret null;
9  
  S answer = unquote(io.ask(forward("Awareness", format("loadPage *", url))));
10  
  io.close();
11  
  if (swic(answer, "ok "))
12  
    ret answer.substring(3);
13  
  fail(answer);
14  
}

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: 574 / 506
Referenced in: [show references]