Muhammad Asadullayev
- Forum posts: 1
Apr 28, 2017, 9:12:58 PM via Website
Apr 28, 2017 9:12:58 PM via Website
Hey guys i'm getting this error and my app is not running support me please !
here is the fragment activity code
package info.androidhive.materialtabs.fragments;
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 info.androidhive.materialtabs.R;
public class OneFragment extends Fragment{
WebView webView;
public OneFragment() {
// Required empty public constructor
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_one, container, false);
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setBuiltInZoomControls(true);
webView.loadUrl("file:///android_asset/web/index.html");
}
}
You can see my screen also here
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.