Libraryless. Click here for Pure Java version (34L/1K/2K).
1 | !636 |
2 | |
3 | import android.app.Activity; |
4 | import android.widget.*; |
5 | import android.webkit.*; |
6 | |
7 | main {
|
8 | static Activity androidContext; |
9 | |
10 | psvm {
|
11 | System.out.println("Hello world!");
|
12 | |
13 | androidContext.runOnUiThread(new Runnable() {
|
14 | public void run() {
|
15 | WebView wv = new WebView(androidContext); |
16 | wv.setWebViewClient(new WebViewClient()); |
17 | wv.loadUrl("http://search.tinybrain.de");
|
18 | androidContext.setContentView(wv); |
19 | } |
20 | }); |
21 | print "yo" |
22 | } |
23 | } |
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: | 946 / 1015 |
| Referenced in: | [show references] |