This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Do not reconnect to the application

hello, Please let me know why the BLE_GAP_EVT_DISCONNECTED event does not occur even when I exit the application. It does not always occur when BT smart setting is enabled. However, if disabled, the BLE_GAP_EVT_DISCONNECTED event will fire. This is about SHARP's smartphone. thank you,

Parents
  • What app?

    What, exactly, do you mean by "exit the application" ? You realise that just swiping an Android app off the screen does not necessarily "close" it?

    developer.android.com/.../process-lifecycle.html

    In particular, note:

    An unusual and fundamental feature of Android is that an application process's lifetime is not directly controlled by the application itself. Instead, it is determined by the system through a combination of the parts of the application that the system knows are running, how important these things are to the user, and how much overall memory is available in the system

Reply
  • What app?

    What, exactly, do you mean by "exit the application" ? You realise that just swiping an Android app off the screen does not necessarily "close" it?

    developer.android.com/.../process-lifecycle.html

    In particular, note:

    An unusual and fundamental feature of Android is that an application process's lifetime is not directly controlled by the application itself. Instead, it is determined by the system through a combination of the parts of the application that the system knows are running, how important these things are to the user, and how much overall memory is available in the system

Children
No Data
Related