Android: screen rotation, on destroy and services connundrum

后端 未结 3 771
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 16:12

I\'ve modified the bluetooth chat example from the SDK demos to be able to control an arduino powered bluetooth LED matrix. Using the chat program, I can send messages to the

3条回答
  •  醉酒成梦
    2021-01-21 16:40

    The recommended way to do this is to have a TaskFragment handling your logic, and then some callbacks to your activity to sync with your UI.

    See the following site for more detailed explanation: http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html

提交回复
热议问题