Android Weather App WeatherIcon issue
<p>I am trying to make a weather app on android studio. I previously made the application as a desktop application in java. I currently have everything working in the android version, except i cannot figure out how to change the image of the weather icon to change based off of the updated weather. I can only make a it a permanent image/icon</p>

<p>below is the main activity class </p>

<pre><code>        ImageView img = (ImageView) findViewById(R.id.imageView);
        Context context = img.getContext();
        img.setImageResource(context.getResources().getIdentifier("drawable/" + w.getWeather(), null, context.getPackageName()));
</code></pre>