I'm developping an android application so I'm trying to call activity1 "myown" in another activity2 "MainActivity" but I just keep getting an error "Unreachable statement" over this line of code
Intent launchActivity2 = new Intent(MainActivity.this, myown.class);
MainActivity.this.startActivity(launchActivity2);
Could you explain to me what may went wrong an tell me how to fix it?
i would be really grateful