• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

why it gives me IllegalStateException when i click button on fragment

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have app with viewpager.I need to call other fragment methon when i click button on first fragment.

this is my mail Activity




this is my fragment1



this is fragment2



this is myfragment_layout xml file




this is my_fragment2 xml filee




when i run the app it gives me the first fragment with a button.when i clcick button it gives me below error



The line which gives null pointer is below

 
Ranch Hand
Posts: 143
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems like is null.
It's bit hard to make a guess.
If you can send source code, I hope I'll be able to help you to solve this problem.
please check your private messages for my email address.

-Supun
 
reply
    Bookmark Topic Watch Topic
  • New Topic