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.

A>B>C>[GO TO B]
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?

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



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
hack...@android.com

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*

* *

*www.safteytips007.blogspot.com*

*www.wonderfulbwp.blogspot.com < http://www.wonderful-bwp.blogspot.com/> ;*

*                   www.technicaleducationbwp.blogspot.com*






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to send combination keys in functional testing

Hello,

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
applications?

Thank you for advance.
-Rui

-- 

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.gargoylesoftware.htmlunit.javascript.host.ActiveXObject;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;


@SuppressWarnings("unused")
public class DDT_Test extends SeleneseTestCase {
        public void setUp() throws Exception {
                selenium= new DefaultSelenium("localhost", 4444, "*firefox", 
"http://
abc.com");
                selenium.start();
                }
        //@Test
        public void Test1() throws Exception {
                selenium.selectWindow("null");
                selenium.type("getquote_ptlt_2{actionForm.lastName}", "First");
        }
        @AfterClass
        public void tearDown() throws Exception {
                selenium.stop();
        }
}

-- 

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