I've got an error on this line of code:
startActivity(new Intent(net.learn2develop.ACTIVITY2));
stating "net.learn2develop.ACTIVITY2 cannot be resolved to a type"
I've compared my code against the book over and over and am not finding mistakes.
I've got this in the manifest:
Code:
<activity
android:name=".Activity2"
android:label="Activity 2">
<intent-filter>
<action android:name="net.learn2develop.ACTIVITY2" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
The suggestions to fix it in Eclipse are to create the class ACTIVITY2... but the book had me create the class as Activity2... then Eclipse suggests the code:
public class ACTIVITY2 extends Intent
but the book called for
public class Activity2 extends Activity
Any help is appreciated.