Challange - Displaying API (how to?)

I’m trying to solve the challange about displaying API using method which dynamically shows it in TextView.
How to do it?
Many thanks.

I’ve found the following solution:

public class CheatActivity extends AppCompatActivity {

private TextView mAPIVersionTextView;

protected void onCreate(Bundle savedInstanceState) {

mAPIVersionTextView = (TextView)findViewById(;
mAPIVersionTextView.setText("The current API level of your device is " + Build.VERSION.SDK_INT); //here it is
//also you can write code below
//APIVersionTextView.setText("The current SDK version of your device is " + Build.VERSION.RELEASE);

Great, many thanx, Will try it out :slight_smile:
Are you good in Android?