Nested activities question

by jb » Fri, 23 Apr 2010 00:48:09 GMT

Sponsored Links
 I have an application that allows the user to "drill-down" into data.
At each level of data the user can choose a Tableview item or a
Listview item. This will result in a startActivity() call for display
of new data.

I can get back to the top (Parent activity) by using the Back button,
which can take a while. Is there a way to "POP" back to the Parent
activity and dismiss all previously allocated activities, and not have
to go back through all the activities previously created?




Nested activities question

by ~ TreKing » Fri, 23 Apr 2010 01:48:27 GMT


See this thread:

Sponsored Links

Nested activities question

by krox » Fri, 23 Apr 2010 02:03:01 GMT


rootActivityIntent) with the flag FLAG_ACTIVITY_REORDER_TO_FRONT set
for rootActivityIntent. Hope this is what you were looking for, for
more information see: #FLAG_ACTIVITY_REORDER_TO_FRONT



Other Threads

1. The operation timed out

Hi, I am reading one simple web page, but when I launched my
application after 2-3 min it show me output as : The operation timed
Here ia my code

public void onCreate(Bundle icicle)

         /* We will show the data we read in a TextView. */
         TextView tv = new TextView(this);

         /* Will be filled and displayed later. */
         String myString = null;
              /* Define the URL we want to load data from. */
              URL myURL = new URL("");
              /* Open a connection to that URL. */
              URLConnection ucon = myURL.openConnection();

              /* Define InputStreams to read
               * from the URLConnection. */
              InputStream is = ucon.getInputStream();
              BufferedInputStream bis = new BufferedInputStream(is);

              /* Read bytes to the Buffer until
               * there is nothing more to read(-1). */
              ByteArrayBuffer baf = new ByteArrayBuffer(50);
              int current = 0;
              while((current = != -1)

              /* Convert the Bytes read to a String. */
              myString = new String(baf.toByteArray());
         catch (Exception e)
              /* On any Error we want to display it. */
              myString = e.getMessage();

         System.out.println (myString);
         /* Show the String on the GUI. */

Logcat gives following info:

11-02 09:40:11.879: INFO/ActivityManager(63): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.monarch.web/.GetDataFromTheWeb }
11-02 09:40:21.943: WARN/ActivityManager(63): Launch timeout has
expired, giving up wake lock!
11-02 09:40:22.071: WARN/ActivityManager(63): Activity idle timeout
for HistoryRecord{43d91bf0 com.monarch.web/.GetDataFromTheWeb}
11-02 09:43:30.310: INFO/ActivityManager(63): Displayed activity
com.monarch.web/.GetDataFromTheWeb: 198326 ms (total 198326 ms)


2. Splash screen | warning: Activity not started, its current task has been brought to the front

i want to display a splash screen followed by my trial.class.I am not
getting any error but warning as:

Warning: Activity not started, its current task has been brought to
the front

i have different-2 approches for this each time this warning is being
 public class Splash extends Activity
        public void onCreate(Bundle savedInstanceState)
                Thread splashThread = new Thread() {
                 public void run() {
                    try {
                       int waited = 0;
                       while (waited < 5000) {
                          waited += 100;
                    } catch (InterruptedException e) {
                       // do nothing
                    } finally {
                       Intent i = new Intent();


3. Enable IPIP module in the kernel

4. Internet is not working on emulator

5. How to use system () call

6. Adventures with LVL

7. accsessing picasa using android