wildabeast / BarcodeScanner

Official repository now at [phonegap/phonegap-plugin-barcodescanner](http://github.com/phonegap/phonegap-plugin-barcodescanner).
966 stars 739 forks source link

Trying to add a back button in android. #350

Closed vikassingla closed 7 years ago

vikassingla commented 7 years ago

Hello , I am trying to add a button in android . I have changed the layout , created a button for it . But whenever I am adding in CaptureActivity.java , it is not working as expected. Can you help me with it.

AbhishekShukla1289 commented 4 years ago

I added this piece of code in CaptureActivity.java while adding a button in the layout/capture.xml referring to that button:

Button button = (Button) findViewById(fakeR.getId("id", "button3")); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { finish(); } });