【问题标题】:Preventing a button from being clicked on different devices at the same time防止在不同设备上同时点击一个按钮
【发布时间】:2020-11-08 21:49:09
【问题描述】:

在我的 android 应用程序中,我有一些在用户单击按钮时运行的代码。我想防止不同设备上的两个不同用户同时单击该按钮。这可能吗?如果可以,我该怎么做?

【问题讨论】:

    标签: android-studio onclicklistener corruption simultaneous


    【解决方案1】:

    您需要了解多线程来实现这一点。 See this herehere

    你基本上需要了解多线程中的同步。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多