If you want to show your custom dialog fragment, you don't need to define it in the Manifest, rather you need to create an instance and call its show method in your activity. That's why you are receiving that error. You have in your manifest an activity defined: com.customdialogfragment.launcher, you need to create that activity and then create the fragment inside the activiy.
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class launcher extends FragmentActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_activity);
showMyDialog();
}
public void showMyDialog() {
CustomDialogFragment newFragment = new CustomDialogFragment();
newFragment.show(getSupportFragmentManager(), "custom");
}
}
*Note: you should probably rename the activity MainActivity or something equivalent