I'm new to Android developing. I'm trying to start another activity from MainActivity but it forces close.
Intent myIntent = new Intent(MainActivity.this, SecondActivity.class); startActivity(myIntent);
I'm new to Android developing. I'm trying to start another activity from MainActivity but it forces close.
Intent myIntent = new Intent(MainActivity.this, SecondActivity.class); startActivity(myIntent);
More details of your code and error message needed but I think you've forgotten to add SecondActivity to AndroidManifest.xml:
<activity android:label="@string/app_name" android:name="SecondActivity"/>