Android examples for Network:User Agent
get Default User Agent String
//package com.java2s; import android.annotation.TargetApi; import android.content.Context; import android.webkit.WebSettings; public class Main { @TargetApi(17)//from www . j a va 2 s .co m private static String getDefaultUserAgentL17(Context context) { return WebSettings.getDefaultUserAgent(context); } }