Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.util.Log;

public class Main {
    public final static String NOTEBOOK = "notebook";
    public final static String BRIEFNOTE = "briefnote";
    public final static String BUSINESS = "business";
    public final static String CHECKER = "checker";
    public final static String WINI = "wini";

    public static String getTypeByID(int template_id) {

        Log.e("util", template_id + "!!!!!!!!!!!!");

        if (template_id == 6)
            return NOTEBOOK;
        else if (template_id == 7)
            return BRIEFNOTE;
        else if (template_id == 8)
            return BUSINESS;
        else if (template_id == 9)
            return CHECKER;
        else if (template_id == 10)
            return WINI;
        else
            return NOTEBOOK;
    }
}