Echoing previous response, you shouldn’t use a broadcast receiver.
In the same situation, what I did was to declare the theme thusly:
<activity android:name="MyActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoDisplay">
More Related Contents:
- Trying to start a service on boot on Android
- Broadcast Receiver within a Service
- Get Context in a Service
- Broadcast Receiver Register in Manifest vs. Activity
- How to monitor SIM state change
- Android SMS receiver not working [closed]
- Android: How to get a list of all available intent filters?
- Android keep BroadcastReceiver in background
- Android, Detect when other apps are launched
- Android. Is WorkManager running when app is closed?
- Android ViewPager with bottom dots
- Android PendingIntent extras, not received by BroadcastReceiver
- How to make my app receive broadcast when other applications are installed or removed
- Is an android service guaranteed to call onDestroy()?
- How to get phone number from an incoming call?
- Receiver not registered exception error?
- Android BroadcastReceiver within Activity
- Cannot keep android service alive after app is closed
- Android – Way to appear bordered text on the TextView?
- creating a strikethrough text?
- Is it possible to put a ConstraintLayout inside a ScrollView?
- Android GCM (push notification): device doesn’t receive notification if application is stopped
- Boot BroadcastReceiver does not work on Xiaomi devices
- How can I display a dialog from an Android broadcast receiver?
- How do you implement context menu in a ListActivity on Android?
- DownloadManager.ACTION_DOWNLOAD_COMPLETE broadcast receiver receiving same download id more than once with different download statuses in Android
- Is there a view for inputing integers in Android?
- Getting rid of the gradient at the top of an Activity (Android)
- Android Alarm Manager with broadcast receiver registered in code rather than manifest
- android – How to get view from context?