get Resources from Context - Android App

Android examples for App:Resource

Description

get Resources from Context

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.res.Resources;

public class Main {
    /**// w w  w .j av a  2s  .c o m
     * 
     * @Title: getResource 
     * @Description: TODO 
     * @param context
     * @return Resources 
     */
    public static Resources getResources(Context context) {
        return context.getResources();
    }
}

Related Tutorials