<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
    主站蜘蛛池模板: 日本精品人妻无码免费大全 | 亚洲精品福利视频| 亚洲AV无码不卡无码| 性一交一乱一视频免费看| 国产精品成人免费观看| 亚洲乱码无限2021芒果| 亚洲av永久无码精品古装片| 成人免费a级毛片无码网站入口| a级在线免费观看| 国产免费牲交视频免费播放| 国产成人亚洲精品无码AV大片| 亚洲激情校园春色| 亚洲图片一区二区| 精品日韩亚洲AV无码 | 精品无码人妻一区二区免费蜜桃| 国产高清视频免费在线观看 | 亚洲国产精品自在自线观看| 亚洲六月丁香婷婷综合| 亚洲综合激情五月丁香六月| 亚洲中文字幕无码一去台湾| 亚洲五月综合缴情婷婷| 亚洲精品综合在线影院| 亚洲AV日韩AV无码污污网站| 国产精品亚洲专区无码不卡| 国产精品亚洲а∨无码播放不卡| 毛片亚洲AV无码精品国产午夜| 国产天堂亚洲精品| 国产一区二区三区免费观看在线 | 亚洲视频在线播放| 亚洲情A成黄在线观看动漫软件| 亚洲国产精品无码观看久久| 黄色一级毛片免费| 巨波霸乳在线永久免费视频| 无人在线观看完整免费版视频| 亚洲国产a级视频| 亚洲最大在线视频| 国产特黄特色的大片观看免费视频| 99re6免费视频| 亚洲天堂在线视频| 日韩亚洲不卡在线视频中文字幕在线观看 | 99在线视频免费观看视频 |