This is very much not a public API. Please don't do this, as it will be impossible to prevent your app from breaking across different platform updates and different devices.
On Mon, Dec 21, 2009 at 7:46 PM, peng <[email protected]> wrote: > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

