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

20
LINES

< > BotCompany Repo | #1000683 // WebView test

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

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

!636

!711 // runnable {

import android.view.*;
import android.widget.*;
import android.webkit.*;
import android.app.*;
import android.content.Context;

public class main {
  public static View main(final Activity context) {
    context.runOnUiThread(runnable {
      WebView wv = new WebView(context);
      wv.setWebViewClient(new WebViewClient());
      //wv.loadUrl("http://slashdot.org");
      wv.loadUrl("http://search.tinybrain.de");
    });
    return new TextView(context);
  }
}

Author comment

Began life as a copy of #1000443

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: #1000683
Snippet name: WebView test
Eternal ID of this version: #1000683/1
Text MD5: 2efdb268e248924ce4b17d8baeab70af
Transpilation MD5: 56921a937a82d7f37cf9ffda51ad76cd
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:41:02
Source code size: 510 bytes / 20 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 693 / 692
Referenced in: [show references]