get Default User Agent L17 - Android android.webkit

Android examples for android.webkit:WebSettings

Description

get Default User Agent L17

Demo Code

import android.annotation.TargetApi;
import android.content.Context;
import android.webkit.WebSettings;

public class Main {

  @TargetApi(17)//from w  w w. ja v  a2 s .  co m
  private static String getDefaultUserAgentL17(Context context) {
    return WebSettings.getDefaultUserAgent(context);
  }

}

Related Tutorials