public class ScreenTwo extends Fragment {
public ScreenTwo() {
}
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.screen_two, container,
false);
return rootView;
}
}
public void Click(View view) {
Intent intent=new Intent(ScreenTwo.this,mainclass.class);
startActivity(intent);
}
Could not find a method Click(View) in the activity class ssoft.sskaterpro.MainActivity for onClick handler on view class android.widget.Button with id 'button3'