Skip to content

Instantly share code, notes, and snippets.

@dimasvm
Created February 18, 2017 03:36
Show Gist options
  • Save dimasvm/ec22b02624415b6b77689d931771a154 to your computer and use it in GitHub Desktop.
Save dimasvm/ec22b02624415b6b77689d931771a154 to your computer and use it in GitHub Desktop.
View Object QRCode Scanner
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
// View Object
private Button buttonScan;
private TextView textViewNama, textViewTinggi;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// initialize object
buttonScan = (Button) findViewById(R.id.buttonScan);
textViewNama = (TextView) findViewById(R.id.textViewNama);
textViewTinggi = (TextView) findViewById(R.id.textViewTinggi);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment