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

23
LINES

< > BotCompany Repo | #1000684 // WebView test 2

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (34L/1K/2K).

!636

import android.app.Activity;
import android.widget.*;
import android.webkit.*;

main {
  static Activity androidContext;
  
  psvm {
    System.out.println("Hello world!");
    
    androidContext.runOnUiThread(new Runnable() {
      public void run() {
        WebView wv = new WebView(androidContext);
        wv.setWebViewClient(new WebViewClient());
        wv.loadUrl("http://search.tinybrain.de");        
        androidContext.setContentView(wv);
      }
    });
    print "yo"
  }
}

Author comment

Began life as a copy of #1000419

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000684
Snippet name: WebView test 2
Eternal ID of this version: #1000684/1
Text MD5: 5502d74765369eab98f82a173e70067a
Transpilation MD5: 3ba08dca0eb2e218e8e3ea76b2031273
Author: stefan
Category: javax android
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-22 01:43:37
Source code size: 519 bytes / 23 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 629 / 620
Referenced in: [show references]