Example usage for android.content ContextWrapper getString

List of usage examples for android.content ContextWrapper getString

Introduction

In this page you can find the example usage for android.content ContextWrapper getString.

Prototype

@NonNull
public final String getString(@StringRes int resId) 

Source Link

Document

Returns a localized string from the application's package's default string table.

Usage

From source file:org.deviceconnect.android.deviceplugin.irkit.IRKitManager.java

/**
 * ??.//  www  . ja  v a 2 s.  co  m
 * 
 * @param context ??????
 */
public void init(final ContextWrapper context) {
    mAPIKey = context.getString(R.string.apikey);

    TelephonyManager tm = getTelephonyManager(context);
    mCountryCode = tm.getSimCountryIso().toUpperCase(Locale.ENGLISH);
}