Code example for WebView

Methods: removeView, getParent

0
					return; 
				} 
				WebView view = views.get(id);
				views.remove(id);
				 
				((ViewGroup)view.getParent()).removeView(view);
			} 
		}); 
	} 
	 
	public static void OpenURL(final int id, final String url)
	{ 
		final JNIActivity activity = JNIActivity.GetActivity();
		activity.runOnUiThread(new Runnable() {
			@Override 
			public void run() { 
				if (!views.containsKey(id))
				{ 
					Log.d(TAG, String.format("Unknown view id %d", id));
					return; 
				}