Unable To Pass Data Between Fragments.....textview Throws Nullpoint Exception
For all those who are downvoting and voting for this question to be closed thinking it has something to do with the scope of textview.....then have a look,it has nothing to do with
Solution 1:
You should call
text=(TextView)view.findViewById(R.id.tt);
onCreateView(), or in the method that is called from onCreateView() before doing anything with it. If text hasn't been assigned to UI element, TextView throws NullPoint Exception. If you really want that assigning in another method, write a method like
privatevoidinitUI()
Post a Comment for "Unable To Pass Data Between Fragments.....textview Throws Nullpoint Exception"