pass intent object to startactivity() method. Narendra
On Tue, Dec 14, 2010 at 1:11 PM, Honest <[email protected]> wrote: > hello, > > i am starting new activity from current activity but some how before > starting activity i am getting Null Pointer exception. and > startActivity() from source activity calls sucessfully. I am getting > Null Pointer exception. the following is code. > > Intent intent = new Intent(PdfFileSelectActivity.this, > PdfViewerActivity.class) > .putExtra(EXTRA_PDFFILENAME, pdffilename) > .putExtra(EXTRA_USENIO, useNIO); > > > i checked intenet pdffilename variable and they are not null. and the > following is declaration in manifest file. > > <activity android:name=".PdfViewerActivity"> </activity> > > hope to hear soon. > > -- > 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 -- Regards, Narendra . -- 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

