Null Exception RelativeLayout
- by theblixguy
I am trying to remove objects from my relative layout and replace the background with another image but I get a java.lang.NullPointerException on this line:
RelativeLayout ths = (RelativeLayout)findViewById(R.layout.activity_main);
Below is my code:
package com.ssrij.qrmag;
import android.app.Activity;
import android.content.Intent;
import…