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 9271685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:40:52+00:00 2026-06-18T15:40:52+00:00

Currently i am using a custom layout with a FrameLayout(Preview) and 2 Buttons(Capture and

  • 0

Currently i am using a custom layout with a FrameLayout(Preview) and 2 Buttons(Capture and Cancel), to take a picture using the Camera API.

setContentView(R.layout.camera_api);
final Button captureButton = (Button) findViewById(R.id.button_capture);
final Button cancelButton = (Button) findViewById(R.id.button_cancel);

captureButton.setOnClickListener(new View.OnClickListener() {
    public void onClick(View v) {
          myCamera.takePicture(null, null, mPictureCallback);
}

cancelButton .setOnClickListener(new View.OnClickListener() {
    public void onClick(View v) {
          finish();
}

But is there a way i can use the Device’s default camera layout and track the capture and cancel buttons of it while disabling video etc..,

I only want the look of the default camera. Preview and event handlers i have them customized.

  • 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-06-18T15:40:53+00:00Added an answer on June 18, 2026 at 3:40 pm

    This is not possible the way you think of it. You can send an intent and let another camera-app do all the stuff for you. If the user has made the snapshot, the ready image is returned to you.

    What you want to do is not possible because there is no default-camera-ui. There are many Android versions and many manufacturers with each providing a slightly different default camera app.

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

Sidebar

Related Questions

I am currently using a custom layout for my MenuItem: The code is basic:
I am currently using the custom layout for the child in Expandablelist which includes
I am currently working on android project where I am using a custom list
I am currently ordering a list of custom objects using the IQueryable OrderBy method
I want to add traffic information to my custom map. Currently I'm using a
I am using wordpress latest version. Currently my blog is set to custom permalink
I'm currently experimenting with using Portlets in layout templates for Liferay 6.0.5, and I'm
I'm using a custom layout to display preferences so that I can insert an
How does one access a particular widget from within a custom layout while using
I'm currently having an issue with using custom ListView adapters with the Holo.Light theme.

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.