android - Why Use Start Activities? -



android - Why Use Start Activities? -

i've been looking through api documentation, , noticed starting api level 16 context class includes next method:

public abstract void startactivities (intent[] intents)

i've been googling around in attempts stave curiosity through example's of it's utilize in application code, question, or article, haven't come across of yet. if has asked similar question, please allow me know.

anyways, i'm curious when should/could used in application code, , (if any) benefits of doing be? i've never seen method used, , fail grasp it's utility. feedback appreciated.

it's used in application code. going never, i'm not that sure ;)

however, can used create synthetic stack, when starting new task. want have ready-made stack, key navigates "hierarchically" within task.

curiously, it's improve explained in documentation of contextcompat in context itself.

start set of activities synthesized task stack, if able.

in api level 11 (android 3.0/honeycomb) recommended conventions app navigation using key changed. key's behavior local current task , not capture navigation across different tasks. navigating across tasks , reaching previous task accomplished through "recents" ui, accessible through software-provided recents key on navigation or scheme bar. on devices older hardware button configuration recents ui can accessed long press on home key.

when crossing 1 task stack post-android 3.0, application should synthesize stack/history new task user may navigate out of new task , launcher repeated presses of key. key presses should not navigate across task stacks.

startactivities provides mechanism constructing synthetic task stack of multiple activities. if underlying api not available on scheme method homecoming false.

android android-intent android-activity

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -