Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.nishant.textontym/com.example.nishant.textontym.ContactsFragment}; have you declared this activity in your AndroidManifest.xml?
Your calling com.example.nishant.textontym.ContactsFragment
activity which was not declared in the manifest or if ContactsFragment is a Fragment then you must add it to an activity, you can’t call via intent.