Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Camera basics:Delegating to system cam
public class MainActivity extends AppCompatActivity {
ImageView ivTemp;
Button btCallCameraThumbnail;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ivTemp = findViewById(R.id.iv_tmpcheck);
btCallCameraThumbnail = findViewById(R.id.bt_call_camera_thumbnail);
btCallCameraThumbnail.setOnClickListener(v -> callCameraForThumbnail());
}
private void callCameraForThumbnail() {
//todo
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.