use a different action at the Camera icon

closes #6
This commit is contained in:
tibbi 2016-07-12 11:10:57 +02:00
parent 1b30b011b2
commit 6bcb522d59

View file

@ -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;
} }