android - Toast.makeTest not working in Fragment? -
i've been working this, activity changing fragment.
there's no problem until lastly line
toast.maketext(pagesfragment.this, "message" , toast.length_short).show(); the .maketext got error.
your help much appreciated.
the first parameter of maketext context. if within fragment have utilize getactivity
toast.maketext(getactivity() android android-fragments android-toast
No comments:
Post a Comment