この場合、タイマーを追加することについて混乱しています。「button_Timer」がクリックされたときに「mService.sendAlert(mDevice, str2)」を毎分送信したい。
public void onClick(View v) {
switch (v.getId()) {
case R.id.button_Timer:
Log.e("MainActivity", "Clicked");
if (mService != null)
{
str2 = Ef.getText().toString();
str2 = str2.substring(0, 0) + "E" + str2.substring(0, str2.length());
mService.sendAlert(mDevice, str2);
}
break;
default:
Log.e(TAG,"wrong Click event");
break;
}
}
前もって感謝します