android - get nullpointer using getLocalActivityManager().getActivity(tag) -
i'm using tabactivity implement tabs in project , want communicate activities of tabs , invoke methods tabactivity , use method below:
coachactivity activity=(coachactivity) getlocalactivitymanager().getactivity(mtabhost.getcurrenttabtag());
but activity
null. coachactivity
tab1 activity.
my code bit long don't post here. double checked , i'm sure problem isn't setup of tabs. set current tab , checked coachactivity
created.
Comments
Post a Comment