Skip to content

Instantly share code, notes, and snippets.

@Falci
Last active December 13, 2015 17:48
Show Gist options
  • Save Falci/4950062 to your computer and use it in GitHub Desktop.
Save Falci/4950062 to your computer and use it in GitHub Desktop.
Adicionado método que será chamado no clique do botão
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
/**
* Método que será chamado no clique do botão
* @param view
*/
public void lerQR(View view){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment