[Solved] No Activity found when navigating to another activity in Android


try this,

    btnAdd.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
   // Start 2nd Activity

   if(selectedItem != 0){
            insertContact(name, email);
        }

        startActivity(new Intent(MainActivity.this, SecondActivity.class));
        finish()
    }
});

5

solved No Activity found when navigating to another activity in Android