Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Camera basics:Delegating to system cam
public class MainActivity extends AppCompatActivity {
ImageView ivTemp;
Button btCallCameraThumbnail;
protected void onCreate(Bundle savedInstanceState) {
ivTemp = findViewById(;
btCallCameraThumbnail = findViewById(;
btCallCameraThumbnail.setOnClickListener(v -> callCameraForThumbnail());
private void callCameraForThumbnail() {
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.