[android-developers] Re: Relationships among apps, tasks, and activities

2009-05-02 Thread devi prasad
some more thoughts... What I've said about taskAffinity and launchMode attributes, in general, makes sense when the activities are in the same app since the default value of taskAffinity will be set to the package name. When the activities across apps activate one another, just the launch mode val

[android-developers] Re: Relationships among apps, tasks, and activities

2009-05-02 Thread devi prasad
Well, I DO think that Android documentation speaks about tasks and their affinities, contrary to what I said previously :) I defined a non-default value for the taskAffinity attribute of the activity in question: and the activity gets to run in a separate task. Both 'taskAffin

[android-developers] Re: Relationships among apps, tasks, and activities

2009-05-02 Thread devi prasad
Hi, Dianne: this is the portion of the dump that I get by executing "adb shell dumpsys activity" : -- Activities in Current Activity Manager State: Task{3 com.robosoft.example} clearOnBackground=false numActivities=3 rootWasReset=true affinity=com.robosoft.example

[android-developers] Re: Relationships among apps, tasks, and activities

2009-05-01 Thread devi prasad
Hi, Dianne: ok, thanks. I use the following functions to determine the task id and if it is the root of a task: activity.getTaskId(); activity.isTaskRoot(); I used logcat looking for useful hints. Let me see if I understand it better if I use "adb shell dumpsys activity" On Sat, May 2, 2009 at

[android-developers] Re: Relationships among apps, tasks, and activities

2009-05-01 Thread Dianne Hackborn
The behavior you are describing is not how things work. What do you mean you don't see another task? How are you telling? "adb shell dumpsys activity" will show you the current activity state with the exact task organization (in the first part of the output). On Fri, May 1, 2009 at 9:17 PM, dev