<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 閱讀(845) 評論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 亚洲精品无码久久久影院相关影片| 亚洲精品无码久久久久久| 免费v片在线观看品善网| 99热在线精品免费播放6| 久青草视频97国内免费影视| 亚洲日韩乱码中文字幕| 久久久久亚洲精品无码蜜桃| 亚洲中久无码永久在线观看同| 日韩免费观看一级毛片看看| 国产成人精品免费视频动漫| 免费无码黄网站在线看| 农村寡妇一级毛片免费看视频| 国产亚洲精品成人AA片| 亚洲成a人不卡在线观看| 亚洲国产日韩一区高清在线| 久久久久国产成人精品亚洲午夜 | 99久久99热精品免费观看国产| 无码 免费 国产在线观看91| 亚洲第一成年免费网站| 亚洲香蕉久久一区二区三区四区| 亚洲无线电影官网| 亚洲第一福利视频| 亚洲高清国产拍精品26U| 亚洲色偷偷偷鲁综合| 中文字幕专区在线亚洲| 亚洲国产午夜福利在线播放| 日本黄色免费观看| 性xxxx视频播放免费| 最近2019中文免费字幕| www.黄色免费网站| 18禁网站免费无遮挡无码中文| 最近中文字幕完整免费视频ww| 嫩草在线视频www免费观看| 可以免费观看的毛片| a级毛片毛片免费观看久潮| 毛片基地看看成人免费| 免费无码又爽又刺激网站直播| 可以免费观看的国产视频| 国产成人一区二区三区视频免费| 你懂的免费在线观看网站| 久久99精品国产免费观看|