Android examples for User Interface:WebView
get http request UserAgent
//package com.java2s; import android.content.Context; import android.webkit.WebView; public class Main { /**//w w w . j ava2 s .co m * get http request UserAgent * * @param context * @return */ public static String getUserAgent(Context context) { return new WebView(context).getSettings().getUserAgentString(); } }