Thursday, July 25, 2013

Re: [android-developers] coming back to very first activity from inside tab group activity

sorry the code is 

         Intent previewMessage = new Intent(getParent(), Detail_Screen.class);

           

            TabGroupActivity parentActivity = (TabGroupActivity)getParent();

            parentActivity.startChildActivity("Detail_Screen", previewMessage);



On Fri, Jul 26, 2013 at 12:49 AM, Amit Mangal <forum.amit.mangal@gmail.com> wrote:
Hi Dalvinder Sigh Thanks for reply but didnt work for me 

i am having tab group activity and inside that i have started many activity the code for starting child activity is 

Intent intent = new Intent(Detail_Screen.this, SizeGuideActivity.class);

intent.putExtra("URL", sizeGuideURL) ;

        startActivity(intent); 



On Thu, Jul 25, 2013 at 6:22 PM, Dalvinder Singh <singh.dalvin@gmail.com> wrote:
You can launch the first activity again and your first activity can implement onNewInent().
Make sure while launching the first activity set flag activity clear top in the intent to finish the child activities.

...
Singh Dalvinder


On Thu, Jul 25, 2013 at 9:34 AM, Amit Mangal <forum.amit.mangal@gmail.com> wrote:
Hi Developers,

I am developing tab group activity. inside one tab there are multiple activity started as a child.
i want to come back to very first activity from inside activity please tell me how to do that.
here is the code for calling child activity
 
Intent previewMessage = new Intent(getParent(), Test.class);
                        TabGroupActivity parentActivity = (TabGroupActivity)getParent();
                        parentActivity.startChildActivity("Test", previewMessage);

i am inside 5th child activity and i want to come back to 1 activity after doing some task.
onbackpressed function sends me 4th activity i want to jumb 1 activty.

thanks

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Cheers,

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate