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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -