Context context = getApplicationContext(); WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
Context context = getApplicationContext(); int drawableId = context.getResources().getIdentifier("my_image", "drawable", context.getPackageName());In this example, we obtain the application's context and use it to access a drawable resource called "my_image". Package Library: The Context class is part of the Android platform, specifically the `android.content` package.