Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions app/src/main/java/com/example/atharva/photo_js/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public class MainActivity extends AppCompatActivity implements CameraBridgeViewB

Mat mgrba,mGray,mCanny,mgrbf,mgrbt,mGauss;

Button b1;
Button button;

ImageView i1;
ImageView image;

TextView t1;

int count = 0;
Bitmap bmap, image, pic;

private boolean showPreviews=false;
Expand All @@ -73,14 +73,14 @@ public void onManagerConnected(int status) {
switch (status){
case BaseLoaderCallback.SUCCESS:{

b1.setOnClickListener(new View.OnClickListener() {
button.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View v) {
showPreviews = !showPreviews;
pic = bmap;

count++;

}
});
Expand All @@ -94,6 +94,7 @@ public void onClick(View v) {
}
}
}
System.out.println("The button was clicked: " + counter);
};


Expand All @@ -116,11 +117,11 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);


b1 = findViewById(R.id.b1);
button = findViewById(R.id.b1);

t1 = findViewById(R.id.t1);

i1 = findViewById(R.id.i1);
image = findViewById(R.id.i1);

javac = findViewById(R.id.javac);

Expand Down