【问题标题】:Rotate device Interrupt methods?旋转设备中断方法?
【发布时间】:2020-11-27 20:07:06
【问题描述】:

手机的轮换中断/中断方法?比方说……

public void doingSomething() {
  a = 23;
  soundPool.play(soundId1, 1, 1, 1, 0, 1);
  ...
  ... // here occurs the rotation
  ...
  b = 0;
  cuenta.setText("0");
  c = 100;
}

在上面的代码中,方法结束还是轮换中断了方法?

【问题讨论】:

    标签: android methods


    【解决方案1】:

    是的,方法执行会中断。如果您需要更多信息,请检查 android 上的处理配置更改文档

    这里是参考链接https://developer.android.com/guide/topics/resources/runtime-changes

    【讨论】:

      猜你喜欢
      • 2017-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多