i need help with this code:
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class InicioFragment extends Fragment {
private WebView mWebView;
public InicioFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
inflater.inflate(R.layout.fragment_inicio, container, false);
View rootView = inflater.inflate(R.layout.fragment_inicio, container);
mWebView = (WebView) rootView.findViewById(R.id.activity_main_webview);
WebSettings webSettings = mWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
mWebView.loadUrl("http://myip/webapp/home.html");
mWebView.setWebViewClient(new WebViewClient());
}
}
So.. the app works, but the WebView dont.. just white screen, and i know that my host its ok, because im using a web view in other apps, and im getting an error like this:
glUtilsParamSize: unknow param 0x00000bd0
glUtilsParamSize: unknow param 0x00000b44
Any tips? Thank You !!