• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Simple problem - start Activity

Potices

Lurker
Hey guys, I'm brand new to Android Development and Java in general, and I have a problem with open a new Activity. I've googled a lot but I did not find a answer that I could use, so I asked by myself.

When I click the button, I get an error. I tried both Intent 'classSetup' and Intent 'i' in the startActivity() .

My onClick() in my GroupMenu.java (Starting point):
[HIGH]public void onClick(View v) {
Intent classSetup = new Intent("com.frederik.groupchooserpro.CLASS_SETUP");
Intent i = new Intent(GroupMenu.this, Class_setup.class);
startActivity(classSetup);
}[/HIGH]

Manifest:
[HIGH]<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">

<activity
android:name="com.frederik.groupchooserpro.GroupMenu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Class_setup"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.frederik.groupchooserpro.CLASS_SETUP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>[/HIGH]
 
Hey there and welcome to the forums!

I've moved your thread over into the development section so you can get better support :)
 
Back
Top Bottom