开发者

Android Activity call another Activity method

开发者 https://www.devze.com 2023-01-03 03:06 出处:网络
A TabActivity start other activity when i click on a tab, How to send information to parent (tabActivity) and don\'t finish current activity?

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 Tabacti开发者_如何学JAVAvity, is it possible ?

Thanks


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

0

精彩评论

暂无评论...
验证码 换一张
取 消