public class MultiColumnActivity extends Activity implements OnClickListener {
private ArrayList> list;
Button filterButton;
In your manifest file you have to register your DateActivity
using <activity>
tag not with <application>
tag.
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.nous.demoexample.MultiColumnActivity 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="com.nous.demoexample.Dateactvity android:label="@string/app_name"/>
and start your Dateactivity
as below:
Intent intent = new Intent(MultiColumnActivity.this,Dateactvity.class); startActivity(intent);
If your activity outside main package then declare like this :
<application android:name="com.nous.demoexample.Dateactvity"></application>
Instead of
Intent intent = new Intent();
intent.setClassName("com.nous.demoexample", "com.nous.demoexample.Dateactvity");
Write like this :
Intent oIntent = new Intent(getApplicationContext(), com.nous.demoexample.Dateactvity.class);
declare activity in manifest-
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.packageName.MultiColumnActivity
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
You should make an entry of activity like below
<activity
android:name=".Dateactvity" >
</activity>
Not under application tag
<application android:name=".Dateactvity"></application>
http://developer.android.com/guide/topics/manifest/manifest-intro.html
You need to declare like...
<activity android:name="com.nous.demoexample.Dateactvity"></activity>
And use intent like...
Intent intent = new Intent(MultiColumnActivity.this,Dateactvity.class);
startActivity(intent);