我有一個按鈕,我需要兩個動作發生,那就是當我安裝後第一次打開我的應用程序時,它應該執行任務。第一次啓動後,它不想執行第一個動作我怎麼能執行這個?單按鈕點擊兩種不同的動作?
我實現這一點,
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
}
});