Este el código que tengo en el Java:
package com.example.facien.apliacionfacien;
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.WebView;
import android.widget.Button;
import android.widget.TextView;
public class FFisica1 extends Fragment {
Button btn1;
WebView wView;
TextView textView2;
public FFisica1() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_finformatica1, container, false);
String url = "file:///android_asset/nitro/administrativo.svg";
WebView view = (WebView) rootView.findViewById(R.id.wView);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl(url);
return rootView;
}
}