Android Activity call another Activity method

喜夏-厌秋 提交于 2019-12-02 20:46:55

问题


A TabActivity start other activity when i click on a tab,

How to send information to parent (tabActivity) and don't finish current activity?

My tabactivity start another activity like this :

mTabHost.addTab(

mTabHost.newTabSpec(TAB_OPTIONS)

.setIndicator(TabImgFond5)

.setContent(intentOptions));

Inside my new Activity Option, i would like to Call method of Tabactivity, is it possible ?

Thanks


回答1:


Call getParent() from the tab's activity to get at the TabActivity.



来源:https://stackoverflow.com/questions/2992656/android-activity-call-another-activity-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!