i tried to convert activity into fragment and the code is without "errors" in android studio, but the app crashes when the converted activity is pressed.
part of code i think its causing error:
Btnregister.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent myIntent = new Intent(view.getContext(), Register.class);
startActivityForResult(myIntent, 0);
getActivity().finish();
}});
and my error output:
04-19 15:54:33.644 32229-32229/com.app.test E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.app.test, PID: 32229
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.app.test/com.app.test.ChangePassword}; have you declared this activity in your AndroidManifest.xml?
could this part of code that i pasted cause this problem ?