Help Activity History Stack...

by Moto » Sat, 01 Aug 2009 14:43:14 GMT

Sponsored Links
 Hello could someone help me out choosing the right flags?

I have 3 activities, I want to allow only one of each of the
activities to be on the history stack at one time.

gives me A>C>B  using FLAG_ACTIVITY_REORDER_TO_FRONT flag.

Now the problem is that when I call B from C I want B to be restarted
not just brought to the front...  how can I do that?


Help Activity History Stack...

by Dianne Hackborn » Mon, 03 Aug 2009 15:31:47 GMT

 There isn't a direct way to do this.  You could either handle onNewIntent()
in the activity to have it clear itself, or finish() itself and start a new
fresh instance.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Sponsored Links

Help Activity History Stack...

by Umair Akbar » Tue, 04 Aug 2009 01:29:42 GMT

 *Hey, acquaintances h r u *

*Break these bogs @ very fascinating*

*I hope u enjoy this bogs*

* *


* <> ;*

*         *


Other Threads

1. How to send combination keys in functional testing


I am trying to test my application with
ActivityInstrumentationTestCase2. My application is for a specific
hardware, which has a hardware keyboard including ctrl and alt key,
and has functions which are fired by combination keys, e.g., Ctrl +
BackSpace, Ctrl + C, Ctrl + Right, and etc.

Does anybody know how to send these combination keys to Android

Thank you for advance.


2. Test Class not found in selected project - Eclipse

Hi ,

when i run the below code i got the err as "Test Class not found in
selected project" in eclipse. Am using eclipse+TestNG.I have the class
file as "DDT_Test".help wud be greatly appreciated.

package DDT_Pack;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;

public class DDT_Test extends SeleneseTestCase {
        public void setUp() throws Exception {
                selenium= new DefaultSelenium("localhost", 4444, "*firefox", 
        public void Test1() throws Exception {
                selenium.type("getquote_ptlt_2{actionForm.lastName}", "First");
        public void tearDown() throws Exception {


3. Resize WebPage Problem

4. .text.parseexception unparseable

5. [WTI] [Desire ROM] LeeDrOiD V3.0 GB Android 2.3.3 Gingersense

6. How to properly use Model classes in Android

7. Built-in camera problem deleting files