我有一个按钮,我需要两个动作发生,那就是当我安装后第一次打开我的应用程序时,它应该执行任务。第一次启动后,它不想执行第一个动作我怎么能执行这个?单按钮点击两种不同的动作?
我实现这一点,
private int _clicks = 0;
k = (Button)findViewById(R.id.button1);
if(count == 1)
//do whatever
if(count == 2)
//do whatever
if(count == 3)
//do whatever
}
});