Android : Make an Intent reliable for Fragment

on Thursday, August 7, 2014


I have this piece of code which was first implemented into a class that extends Activity and now that class extends Fragment and I don't know how to transform it.


This is my code:



menuButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(ActivityTypes.this, ConnectionScreen.class);
startActivity(intent);
}
});

0 comments:

Post a Comment