Android launch an activity from a broadcast receiver

后端 未结 3 1878
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 01:02

I know it may not be best practice but this is what i want to do.

When my broadcast receiver is called - start a new activity which has is not fullscreen and has a t

相关标签:
3条回答
  • 2020-12-20 01:28

    You've asked this same question like 3 times now and we still don't have nearly enough information. You keep mentioning the "original activity" but we have no idea what that is, how you started it, or where it went such that it "comes back".

    Your probably is you're probably not finishing your "main" activity, or that you have weird flags, or it's listening for the same intent.

    You also don't show us anything about your broadcast receiver.

    0 讨论(0)
  • 2020-12-20 01:33

    Dont use android:theme="@android:style/Theme.Translucent.NoTitleBar" leave the android:theme as the default.This works for me

    0 讨论(0)
  • 2020-12-20 01:45

    This is related to the problem I answered in a previous question here: Activity started from notification opened on top of the activity stack

    Basically it's all about: android:taskAffinity and android:launchMode

    0 讨论(0)
提交回复
热议问题