Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

EffectHub.com: Your Best Source for Gaming
Login    or

DialogFragment with a WebView

import android.content.DialogInterface;import android.net.Uri;import android.os.Bundle;import android.support.v4.app.DialogFragment;import android.util.Log;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.webkit.WebChromeClient;import android.webkit.WebView;import android.webkit.WebViewClient;import android.widget.Toast;import com.adobe.mobile_playpanel.R;public class MyDialogFragment extends DialogFragment {    public static MyDialogFragment newInstance() {    return new MyDialogFragment();    }        WebView wv=null;        public View onCreateView(LayoutInflater inflater, ViewGroup container,            Bundle savedInstanceState){    View v=inflater.inflate(R.layout.fragment_login, container,false);    wv=(WebView)v.findViewById(R.id.frag_webView);    initWebView(wv);        wv.setWebChromeClient(new WebChromeClient()    {            @Override            public void onProgressChanged(WebView view, int newProgress) {                // super.onProgressChanged(view, newProgress);                getActivity().setProgress(newProgress*1000);            }    });    return v;    }        public void onActivityCreated(Bundle savedInstanceState) {    super.onActivityCreated(savedInstanceState);    wv.loadUrl("http://google.com");    }        private void initWebView(WebView wv)    {    wv.getSettings().setJavaScriptEnabled(true);    wv.clearCache(true);      wv.setScrollBarStyle(0);    wv.setWebViewClient(new MyWebViewClient());    }            private class MyWebViewClient extends WebViewClient    {        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {            // super.onReceivedError(view, errorCode, description, failingUrl);            Log.e("MyWebViewClient", failingUrl);        };        @Override        public boolean shouldOverrideUrlLoading(WebView view, String url) {            Log.d("MyWebViewClient",url);            return super.shouldOverrideUrlLoading(view, url);        }    }        public void onDismiss (DialogInterface dialog)    {    wv.stopLoading();        Log.e("MyDialogFragment", "onDismiss");    //super.onDismiss(dialog);    }        }


...

You must Sign up as a member of Effecthub to view the content.

3845 views    5 comments

You must Sign up as a member of Effecthub to join the conversation.

aprilrussell

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2018-02-07

This should be so simple, but I just can't find a working solution...
I have a DialogFragment that consists of a LinearLayout that contains a WebView. When the user navigates in the WebView I want him/her to be able to go back using the back button. When he/she reaches the start page (i.e. can't go back anymore), the back button should close the dialog.
juegos friv gratis, free run 3 online
I tried setCancelable(false) and fiddling around with an OnKeyListener on the DialogFragments root view (the one that's returned by inflate(), but it never seems to get called for the back button. I don't want to have to involve the Activity's onBackPressed(), it should be handled by the DialogFragment if at all possible...

yadavtheddie007

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2018-01-28

play yahtzee online free a game that requires you to roll five dice to make certain dice combinations that will score you points.

tempvitige1979

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2018-01-24

I have deep respect for people who can read this. Because I had to order my paper from a service found due to reviews of Acad-Write.com. I understand not a thing...

jessicaseal

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2018-01-17

The diversion of the things has been welcomed due to the hard times for the people. The engagement of the things and rush essay services has been produced for the fluctuations for the indviduals. The motion has been tool for the sensitive use of the things for the better life of the individuals.

imvucredit

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2017-12-06

Finally I found this coding after so many online searches windows 10 control panel. Thanks a lot for share it

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 21

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 85