A button is dynamically created in the application and the ID is set to it:
butAss = new Button(this); butAss.setId(++id); I want to add an action to the newly created button, but I cannot register it:
Button dayz; dayz = (Button)findViewById(R.id.______);