It seems like every example I can find of switching between activities involves creating an Intent and passing in the context of a View via an OnClickListener associated wit
You can create intent in the main activity like this
intent
Intent intent = new Intent(FirstActivity.this, second.class); startActivity(intent);
If you are waiting for result from the second then you should use
StartActivityforresult(intent,request code).
StartActivityforresult(intent,request code)
Request code can be any integer.
integer