Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6781101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:35:04+00:00 2026-05-26T16:35:04+00:00

I use the android camera and allow the user to take stills, but I

  • 0

I use the android camera and allow the user to take stills, but I would also like to also allow the user to toggle the ability to use flash. From off/on/auto

This button will be overlayed on the camera just like in the default android camera application. But I do not want to use that application.

How would I do this? I understand Camera.Parameters, but if I added a button on the layout that added key/value pairs to camera.parameters, would I need to refresh the camera? I will eventually try this (sometimes just typing out problems helps me come up with ideas), but any insight would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:35:05+00:00Added an answer on May 26, 2026 at 4:35 pm

    You can change the Camera parameters at any time (after you have your camera object).

    http://developer.android.com/reference/android/hardware/Camera.Parameters.html

    Use whatever settings you want, and attach them to whatever you want your buttons to look like. It’s 100% straight forward.

    here’s a sample from something I did…

        Camera.Parameters cp = mCamera.getParameters();
        cp.setJpegQuality(100);
        cp.setColorEffect(Parameters.SCENE_MODE_PORTRAIT);
        cp.setFlashMode(Parameters.FLASH_MODE_ON);
        cp.setColorEffect(Parameters.EFFECT_MONO);
        setPictureSize(cp);
        mCamera.setParameters(cp);
    

    You can call setParameters at any time, and they will take effect immediately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would prefer to use Android's default camera control - I like all the
I use the Android camera to take a picture in my activity : Intent
How to use default camera to take a picture in android ?
I would like to use Android-x86 2.2 as an emulator on my Windows 7.
Is there any way in Android to use a GLSurfaceView to display the camera
I'm trying to use gluLookAt in an Android app to move the camera around,
I have to develop an android app for which I have to use camera
I'm new to android apps development. I'm trying to use the camera of my
I am looking to use Android's Camera.open() method on two separate API levels. First
I have an application which makes use of the default camera to take pictures

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.