Calculate website speed in android

Hello everyone,
can any body give me an idea on how to 2 calculate website speed in android.
means how soon it will open in the browser. and calculate all the statistics for this particular page. total number of bytes or connection time, etc.

early.

+3
source share
2 answers

You can:

  • save current timestamp,
  • enter the http request
  • get an http response,
  • and get a timestamp as soon as your answer arrives and calculates the time difference.

Or, you could

  • Create web interface
  • Install WebViewClient
  • Use your callbacks - onPageLoaded, onPageFinished, onPageStarted, etc.

: http://developer.android.com/reference/android/webkit/WebViewClient.html

+2

, :

  • HttpConnection -.
  • -
  • HttpConnection -
  • -

, :

  • - , - .
  • String, , -.
  • size/time taken - .

, , URL-, .

, , , .

, .

+1

Source: https://habr.com/ru/post/1788918/


All Articles