Force front-facing camera?

All your problems with Audio, Video and Images.

Force front-facing camera?

Postby gonzoprosperity » Wed Jan 05, 2011 1:14 am

My app starts the Camera activity and I would like to request that the front-facing camera (if available and supported) is pre-selected. I thought the Camera activity remembered the last setting but that appears to not be the case.

I call the Camera activity like so:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  2.         Date d = new Date();
  3.         fileName = "snap_" + d.getTime() + ".jpg";
  4.         file = new File(Environment.getExternalStorageDirectory(), fileName);
  5.         mStateHolder.snapshotUri = Uri.fromFile(file);
  6.         intent.putExtra(MediaStore.EXTRA_OUTPUT, mStateHolder.snapshotUri);
  7.         startActivityForResult(intent, TAKE_PICTURE);
  8.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


I've looked in the MediaStore class for any other options / attributes I can send via the Extras but I dont see anything that looks appropriate.
gonzoprosperity
Freshman
Freshman
 
Posts: 7
Joined: Tue Nov 23, 2010 2:15 am

Top

Re: Force front-facing camera?

Postby brayanscholar » Sat Jan 08, 2011 3:41 pm

Many competitors are already ahead with features such as tablets with webcams. Netbooks webams also compared. Add a photo iSignt I would not buy an iPad for me or my family to an iSight camera on the front applied. And I know many others who expect the same thing.
brayanscholar
Freshman
Freshman
 
Posts: 3
Joined: Sat Jan 08, 2011 2:02 pm

Re: Force front-facing camera?

Postby gonzoprosperity » Sat Jan 08, 2011 5:42 pm

It turns out there is no ability to force the front-facing camera. I've filed a Feature Request

http://code.google.com/p/android/issues/detail?id=13724
gonzoprosperity
Freshman
Freshman
 
Posts: 7
Joined: Tue Nov 23, 2010 2:15 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 16 guests