Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Creating Dialog box with Webview content
- Dialog dialog = new Dialog(DrawingActivity.this);
- LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View vi = inflater.inflate(R.layout.webviewdialog, null);
- dialog.setContentView(vi);
- dialog.setTitle("Calculator");
- dialog.setCancelable(true);
- WebView wb = (WebView) vi.findViewById(R.id.webview);
- wb.getSettings().setJavaScriptEnabled(true);
- wb.loadUrl("http://developer.android.com/guide/topics/ui/dialogs.html");
- System.out.println("..loading url..");
- dialog.show();
Advertisement
Add Comment
Please, Sign In to add comment