sketchub icon

Foreground Service

SK_Naing
52 Likes
12 Comments
647 Downloads

What's new

This is not my project but I have modified and added....(read description)

Added Foreground service type.

Special thank - nethical Original project link https://web.sketchub.in/p/8814

Screenshots

About

This is not my project but I have modified and added

  • Broadcast Receiver : NetworkChangeReceiver
  • Broadcast Receiver : BootCompleteReceiver (auto start after restart or reboot)
  • Broadcast Receiver : StopService (go to activity when stop service)
  • Broadcast Receiver : OpenActivity
  • Action Botton & Easy to Stop
  • POST_NOTIFICATIONS runtime permission for work in android 13
  • Foreground service type

Please check

  • Java Files
  • Android Minifest (Permissions & App Components Asd)

If you want to make sure this foreground service alway works in the background, you can disable battery optimization with the code below.

Intent intent = new Intent(); intent.setAction(android.provider.Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS); startActivity(intent);

Original project link https://web.sketchub.in/p/8814

©2025 Sketchub | User Policy