my sdk2.0.1 when i use the following code:
ComponentName componentName =new ComponentName
("com.android.calendar", "com.android.calendar.LaunchActivity");
if(componentName!=null) { Intent intent = new Intent
(android.content.Intent.ACTION_VIEW);
intent.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(componentName);
startActivity (intent); }
else
Log.i("","98979");
}
in Logcat: 12-22 01:21:19.253: ERROR/AndroidRuntime(601):
Caused by: android.content.ActivityNotFoundException:
Unable to find explicit activity class
{com.android.calendar/com.android.calendar.LaunchActivity};
have you declared this activity in your
AndroidManifest.xml?
can you tell me the new calendar address or package? i
think this problem is that Calendar package is change.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en