<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Calvin's Tech Space

    成于堅忍,毀于浮躁

       :: 首頁 :: 聯系 :: 聚合  :: 管理
    Ok this does work if you add the following to your activity definition
    in the manifest file:

    android:launchMode="singleTop"

    Thanks

    On Nov 21, 8:15 pm, Mark Wyszomierski <mar...@xxxxxxxxx> wrote:
    > Hi Mark,
    >
    > Here's the call:
    >
    >    intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
    > Intent.FLAG_ACTIVITY_CLEAR_TOP);
    >
    > same behavior though, 'B' gets its onCreate() method called. I added
    > an override for onNewIntent() just to see if it would be called, but
    > it isn't either, I must be missing something simple!
    >
    > Thanks
    >
    > On Nov 21, 8:07 pm, Mark Murphy <mmur...@xxxxxxxxxxxxxxx> wrote:
    >
    >
    >
    > > Mark Wyszomierski wrote:
    > > > Hi,
    >
    > > > I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my
    > > > app. It has one feature I don't want though - it restarts the target
    > > > intent, instead of just resuming it. Example history stack, with
    > > > activity D making the call to B with that flag:
    >
    > > >  A  B  C  D
    >
    > > >  new stack
    >
    > > >  A  B
    >
    > > > but 'B' gets relaunched, its onCreate() method is called. Since B is
    > > > already in the history stack, is there a way I can use this flag, but
    > > > have it *not* recreate B, just onResume() it again? The reordering
    > > > flags are kind of what I need too, but they won't pop C and D, just
    > > > reshuffle the stack so B comes to the top, but I want C and D to go
    > > > away,
    >
    > > Per the documentation:
    >
    > > "The currently running instance of activity B in the above example will
    > > either receive the new intent you are starting here in its onNewIntent()
    > > method, or be itself finished and restarted with the new intent. If it
    > > has declared its launch mode to be "multiple" (the default) and you have
    > > not set FLAG_ACTIVITY_SINGLE_TOP in the same intent, then it will be
    > > finished and re-created; for all other launch modes or if
    > > FLAG_ACTIVITY_SINGLE_TOP is set then this Intent will be delivered to
    > > the current instance's onNewIntent(). "
    >
    > >http://developer.android.com/reference/android/content/Intent.html#FL...
    >
    > > So, try OR'ing FLAG_ACTIVITY_SINGLE_TOP in your Intent that you're using
    > > with FLAG_ACTIVITY_CLEAR_TOP, and see if that does the trick.
    >
    > > --
    > > Mark Murphy (a Commons 
    > > Guy)http://commonsware.com|http://twitter.com/commonsguy
    >
    > > Android Consulting/App Development:http://commonsware.com/consulting
    posted on 2010-05-11 11:09 calvin 閱讀(844) 評論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 亚洲第一页在线视频| 欧美男同gv免费网站观看 | 国产成人精品免费视频大全麻豆| 国产精品成人四虎免费视频| 亚洲乱码一二三四五六区| 久久精品熟女亚洲av麻豆| 亚洲免费观看视频| 成人黄软件网18免费下载成人黄18免费视频 | 久久成人18免费网站 | 成在线人免费无码高潮喷水| 国产精品无码一二区免费| 亚洲AV性色在线观看| 成人免费一区二区无码视频| 亚洲精品美女在线观看播放| 人人揉揉香蕉大免费不卡| 亚洲伊人色欲综合网| 三级黄色在线免费观看| 亚洲精品无码鲁网中文电影| 黄色视频在线免费观看| 亚洲午夜福利精品久久| 色老头综合免费视频| 亚洲中久无码永久在线观看同| 免费又黄又爽又猛大片午夜| 亚洲国产成人精品无码久久久久久综合 | 小草在线看片免费人成视久网| 久久久久国产亚洲AV麻豆| 日韩在线观看免费| 亚洲一区AV无码少妇电影☆| 人妖系列免费网站观看| 免费人妻av无码专区| 亚洲最大的黄色网| 青青青国产在线观看免费网站| 亚洲国产一区二区a毛片| 深夜福利在线免费观看| 免费在线观看你懂的| 最近2019中文免费字幕在线观看| 91亚洲国产在人线播放午夜 | 亚洲欧美日韩中文二区| 亚洲欧洲日产国码无码久久99| 午夜福利不卡片在线播放免费| 国产精品亚洲天堂|