Java tutorial
//package com.java2s; // Released under the Apache License, Version 2.0 import android.os.Build.VERSION; import android.os.Build.VERSION_CODES; import android.widget.TextView; public class Main { /** * Sets the font face of {@code view} to all caps (true) or regular (false). * @param view the text view to update * @param allCaps true for all caps, false otherwise */ public static void setAllCaps(TextView view, boolean allCaps) { if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH) { view.setAllCaps(allCaps); } } }