Activity跳转页面代码
Intent intent = new Intent();
intent.setClass(MainActivity.this, activity_second.class);
startActivity(intent);
其中 activity_second为要跳转的页面
要在AndroidManifest.xml写activity,不然会报错
例如 <activity
android:name="com.example.reportform.activity_second"
android:label="@string/app_name" >
>
</activity>
其中 "com.example.reportform.activity_second" 为包名.activity类名