I have used WebView
for browsing in my application, now i want to get internet usage by my WebView
. Is it possible in android?
I have searched a lot but not getting even a single hint. Can anyone help me?
I know you will ask me what have you tried so far
, but i didn't get anything from research. If anyone can give me hint, i am not asking for full code or example.
I have created simple webview and its working fine
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
There is no means for you to determine the bandwidth consumed just by your
WebView
.Depending on how your app is written, if you can determine how much bandwidth you are using outside of
WebView
, you can useTrafficStats
to determine your whole app's bandwidth uses, and then subtract the two values to determine what is inside theWebView
.