Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.res.TypedArray;

public class Main {
    public static Integer getInteger(TypedArray a, int attr) {
        int value = a.getResourceId(attr, Integer.MAX_VALUE);
        return value == Integer.MAX_VALUE ? null : Integer.valueOf(value);
    }
}