android - I want to add a progress dialog -


i want add progress dialog. want add error internet connection. how do. happy if write clearly. it's mine fragment activity

turkish: eğer bizimkilerden biri okuyorsa şöyle diyim hani webview hazırlandığında yuvarlak bişey dönüyor ya ondan olsun istiyorum birde internet yoksa bağlantı yok hatası istiyorum

my xml

<framelayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"      tools:context="com.kamubilgi.kamu_bilgi.ekran2">      <!-- todo: update blank fragment layout -->      <webview         android:layout_width="match_parent"         android:layout_height="match_parent"         android:id="@+id/webview3" /> </framelayout> 

my fregment activity

package com.kamubilgi.kamu_bilgi;      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 sayfa1 extends fragment {          public webview mwebview;             @override         public view oncreateview(layoutinflater inflater, viewgroup container,                                  bundle savedinstancestate) {              view v=inflater.inflate(r.layout.g1, container, false);             mwebview = (webview) v.findviewbyid(r.id.webview3);             mwebview.loadurl("http://www.kamubilgi.com/gazeteler2325/hrryt.php");             mwebview.getsettings().setsupportzoom(true);             mwebview.getsettings().setbuiltinzoomcontrols(true);             // enable javascript             websettings websettings = mwebview.getsettings();             websettings.setjavascriptenabled(true);              // force links , redirects open in webview instead of in browser             mwebview.setwebviewclient(new webviewclient());              return v;           }        } 

please add you


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -