Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static String getUserAgent() {
        StringBuilder model = new StringBuilder(android.os.Build.MODEL);
        if (model.toString().startsWith("\"")) {
            model.deleteCharAt(0);
        }
        if (model.toString().endsWith("\"")) {
            model.deleteCharAt(model.length() - 1);
        }
        return model.toString();
    }
}