parent
1b30b011b2
commit
6bcb522d59
|
@ -98,7 +98,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.camera: {
|
case R.id.camera: {
|
||||||
final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
|
final Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue