1. AC Question's Avatar
    I am crating app which contain one service which keeps running in background .

    This services is running in all mobiles but only few mobile ex: Samsung J series
    not able running because in this mobile Android OS closing that services.

    Can anybody tell the solution for this
    04-04-2016 07:32 AM
  2. B. Diddy's Avatar
    Moved to the Software Development forum.
    04-04-2016 03:08 PM
  3. Jerry Hildenbrand's Avatar
    There is no good way to keep a service alive once the kernel OOM parameters say it need to be closed. You could add a persistent notification and run the app in the foreground, but that's really bad practice.

    The problem in this case is likely the custom memory management used by Samsung. More memory is reserved and allocated to system UI services and Samsung apps, and third-party applications are closed by the kernel reaching an out of memory state too early and too often.

    If you're correctly creating a service and starting it with startService() there is not much more you can do.
    Laura Knotek and B. Diddy like this.
    04-04-2016 04:09 PM

Similar Threads

  1. How to root Samsung Galaxy S5 5.0.2 Lolipop
    By AC Question in forum Samsung Galaxy S5 Rooting, ROMs & Hacks
    Replies: 4
    Last Post: 04-08-2016, 03:03 AM
  2. Email icon stuck in search apps box
    By AC Question in forum Samsung Galaxy S7 edge
    Replies: 1
    Last Post: 04-04-2016, 03:14 PM
LINK TO POST COPIED TO CLIPBOARD