ohhh ,u have to create object of bundle first,then put your values in bundle object
On Tue, Dec 14, 2010 at 3:15 PM, Narendra Bagade <bagadenaren...@gmail.com>wrote: > pass intent object to startactivity() method. > > Narendra > > > On Tue, Dec 14, 2010 at 1:11 PM, Honest <honestsucc...@gmail.com> 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 android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > > > -- > Regards, > Narendra > . > -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en