My app gives me this error when using this onclicklistener
private OnClickListener btn_Config_Onclick = new OnClickListener() {
public void onClick(View v) {
Bundle bundle = new Bundle();
bundle.putString("Name", selected_Name);
bundle.putString("Image", selected_Image);
Intent intent = new Intent(v.getContext(), Configure.class);
intent.putExtras(bundle);
v.getContext().startActivity(intent);
}
};
The class for configure is here: http://pastebin.com/njMa9buE
and the complete error here: http://pastebin.com/REemSken
I have been looking over everything and cant for the life of me find whats wrong, everything is correctly defined in the manifest etc.
Hoping fresh eyes will find the issue
You never initialize
chk_RunVNC. It isnull. You never assign anything to it. So this throws aNullPointerExceptioninonCreate():