get Default User Agent String - Android Network

Android examples for Network:User Agent

Description

get Default User Agent String

Demo Code


//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);
    }
}

Related Tutorials