Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pictureForTile.setOnClickListener(new OnClickListener() { //listen for button press
- @Override
- public void onClick(View v)
- {
- Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
- startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
- protected void onActivityResult(int requestCode, int resultCode, Intent data)
- {
- if (requestCode == CAMERA_PIC_REQUEST) //defined as final 1337
- {
- Bitmap thumbnail = (Bitmap) data.getExtras().get("data");
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement