I have a project to make two button. One button to open FileChooser, and another one to generate MD5 hash.
I have created the layout. I'm also already has the needed class, FileChooser.java
and md5.java
. But i'm still confused how to call them with OnClickListener
.
findViewById(R.id.button1).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// Action
}
});
I don't know what to write in that "Action" line to calling that both class.