UPD: I found how some functions how to manipulate tasks by task id:
public void moveTaskToFront (int taskId, int flags);
but it is only since API level 11
But I use level 7, is there any technique how to move task to
foreground?

On 4 июл, 17:11, Andrey Stelmashenko <[email protected]>
wrote:
> I done some research, and found out two intent flags to launch new
> task with it`s back stack history:
> (FLAG_ACTIVITY_NEW_TASK  |  FLAG_ACTIVITY_MULTIPLE_TASK)
>
> So, as I understand, in case of above example LoginActivity is
> something like "top level launcher" mention in javadoc of
> FLAG_ACTIVITY_MULTIPLE_TASK.
>
> But, I cannot find docs/sample of top level launcher; how to manage
> tasks I launched by their IDs.
> Please help with top level launcher sample or managing tasks api.
>
> On 1 июл, 12:31, Andrey Stelmashenko <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > Hello, community!
>
> > I`m working on multiuser application, which is rest client. So when I launch
> > it the 1st activity offers you to log in.
>
> > e.g. I have 10 activities and LoginActivity.
> > I can go through all of them in different orders:
> > LoginActivity -> Activity1 -> Activity2 -> Activity3 ... -> Activity7 ..
> > -> Activity2 and so on.
> > From each activity I can do logout and go to LoginActivity to log in with
> > another user name.
>
> > Possible next situation:
> > 1) I do log in with username1: LoginActivity -> Activity1 -> Activity2 -> *
> > Activity3**(logout)* -> LoginActivity.
> > 2) then username2 logged in and does his work: LoginActivity -> Activity1
> > -> Activity2 -> ... -> Acivity9*(logout)* -> LoginActivity.
> > 3) when username1 wants to resume his work, he logs in and application must
> > show activity he logged out from: LoginActivity -> *Activity3.*
> > Also each user wants to see only relevant for him data.
>
> > I thought about how to implement this, and have 2 ideas:
> > 1. Use of sharedpreferences separate for each user, e.g.
> > "<prefs_name><userId>" file name. Store all user specific settings there.
> > 2. Use *custom* back stack after logging in.
>
> > Questions:
> > q1) Is there already defined way to implement mustiuser apps in android
> > platform?
> > q2) is it possible to use *explicitly launched custom* back stack, beginning
> > after LoginActivity?
>
> > let`s discuss this.
>
> > p.s. if you don`t understand smth. please do ask.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to