Please include the complete stack crawl. On Fri, May 15, 2009 at 9:14 AM, mscwd01 <[email protected]> wrote:
> > Hey, > > I have a Activity and I have a class which extends this Activity. In > this subclass I call: > > startActivity(new Intent(this, CameraView.class)) > > Which should start the "CameraView" Activity. However, I always get > this error: > > ERROR/AndroidRuntime(876): java.lang.NullPointerException > ERROR/AndroidRuntime(876): at > android.content.ContextWrapper.getPackageName(ContextWrapper.java:119) > ERROR/AndroidRuntime(876): at android.content.ComponentName.<init> > (ComponentName.java:74) > ERROR/AndroidRuntime(876): at android.content.Intent.<init> > (Intent.java:2093) > > If it makes any difference the subclass creates a ListView and when a > row of the ListView is clicked it calls startActivity(); > > Any help is appreciated! Thanks > > > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---

