title: How to call a child which belongs to different activity group?
body: <p>From an activity group how to call a child which belongs to different activity group ?</p>
  
  <p>My DealDetailsActivity.java  is a child activity of an  ActivityGroup named TabGroupactivity. In this, I am calling another activity named ViewStoreActivity like this.</p>
  
  <pre><code>Intent frequentMessages = new Intent(getParent(),ViewStoreActivity.class);
   TabGroupActivity parentActivity = (TabGroupActivity)getParent();
   parentActivity.startChildActivity("ViewStoreActivity", frequentMessages);
  </code></pre>
  
  <p>And its working.
  From another activity named RedeemedActivity, which is a child of another ActivityGroup named FavouriteGroupActivity, I m calling DealDetailsActivity like this;
   Intent frequentMessages = new Intent(getParent(),DealDetailsActivity.class);
      parentActivity.startChildActivity("DealDetailsActivity_fav", frequentMessages);</p>
  
  <p>After that when I tried to call ViewStoreActivity like the first code, I m getting error.</p>
  
  <pre><code>01-23 10:44:04.373: E/AndroidRuntime(1807): Caused by: java.lang.ClassCastException: com.dom.shoppers.FavouriteGroupActivity cannot be cast to com.dom.shoppers.TabGroupActivity
  </code></pre>
  
  <p>the super class of viewstoreactivity is TabGroupActivity.</p>
  
  <p>and the classcastexception is occurring here 
  ie 
  TabGroupActivity parentActivity = (TabGroupActivity)getParent();</p>
  
  <p>Thai is ,standing in an activity which belongs to a different activitygroup named TabGroupActivityFavs i am trying to call an activity which belongs to Tabgroupactivity.
  so the error is occuring saying that TabGroupActivityFavs cannot be cast to TabGroupActivity.</p>
  
  <p>is there any way to implement this....</p>
  
  <p>if i am using startactivity(), then i am not viewing the tabs. since i wants the tabs consistent for all activities ,i cant use that....</p>
  
  <p>any idea ???</p>