create static TabWidget
object tab in TabActivity
like this,
public static TabWidget tabs;
Access the tabs
object from any activity after your operations performs, update your balance
in SharedPreferences
. and use following code snippet.
In your other Activity
.
TabWidget tabs = TabActivity.tabs;
badge = new BadgeView(context, tabs, 3);
badge.setTextSize(12);
badge.setBadgePosition(BadgeView.POSITION_TOP_RIGHT);
badge.setText(pref.getString("balance", "0"));
badge.toggle();
Hope this will help you.