Challange - Displaying API (how to?)

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

hello,
I’ve found the following solution:

public class CheatActivity extends AppCompatActivity {

private TextView mAPIVersionTextView;

protected void onCreate(Bundle savedInstanceState) {

mAPIVersionTextView = (TextView)findViewById(R.id.api_version_text_veiw);
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?