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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:49:03+00:00 2026-06-15T00:49:03+00:00

All I want to disable the camera option in device. I start services to

  • 0

All

I want to disable the camera option in device. I start services to get the camera option and then i will lock using lock() method. How can i get camera object to access it?

thanks
Kumar

  • 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-15T00:49:04+00:00Added an answer on June 15, 2026 at 12:49 am

    You can do it from a device administrator, but the user has to explicitly enable it and it is only available on ICS. Here’s the reference: http://developer.android.com/guide/topics/admin/device-admin.html

    Disable camera – Specifies that the camera should be disabled. Note that this doesn’t have to be a permanent disabling. The camera can be enabled/disabled dynamically based on context, time, and so on. Introduced in Android 4.0.

    read this :- http://developer.android.com/reference/android/hardware/Camera.html

    for getting camera object If you have opened it within your own application, you must hold onto that Camera object (e.g., in your activity). You cannot get it back.

    I suppose if u acquired a lock on camera, you need to release it, use unLock().

    Normally, the camera is locked to the process with an active Camera object until release() is called. To allow rapid handoff between processes, you can call this method to release the camera temporarily for another process to use; once the other process is done you can call reconnect() to reclaim the camera.

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

Sidebar

Related Questions

I want to disable all href links in my page. i am using the
I'm using json +jquery on client side. I want to disable all buttons found
I want to disable all controls in a page using jquery except controls contained
I want to disable/enable all checkboxes in listview. infact want to get select all
I want to disable all controls in a page using jQuery: $(form).attr(disabled, disabled); But
I want to disable all Foreign key constraints and re-enable them after, is there
I want to disable directory browsing of /galerias folder and all subdirectories Index of
I have a form. When the user clicks disable I want to disable all
All I want is a pragmatic random number generator in C# so I can
All I want is to get the website URL. Not the URL as taken

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.