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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:01:57+00:00 2026-06-09T01:01:57+00:00

In my application, I need to change the screen backlight for testing. I am

  • 0

In my application, I need to change the screen backlight for testing. I am atm using API 15 with the external jar Hardware09.jar which has a method called setScreenBacklight(int value).

However when I tried to use it I have an error message like this:

01-01 00:48:24.570: E/AndroidRuntime(2171): java.lang.NoSuchMethodError: android.os.IHardwareService.setScreenBacklight

I dont know what to do in that situation. Is there a way to use that external jar or are there any other ways to control backlight?

Thanks in advance.

This is the screenshot of java build path.

enter image description here

  • 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-09T01:01:59+00:00Added an answer on June 9, 2026 at 1:01 am
    float BackLightValue = (float)value/100; //value is the integer that test station pass to apk
    
    WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
    layoutParams.screenBrightness = BackLightValue;
    getWindow().setAttributes(layoutParams);
    

    Using that block of code, I manage to manipulate backlight. However I am currently thinking that way wont actually manipulate backlight rather screen brightness.

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

Sidebar

Related Questions

I need to change screen resolutions using my application. How to: Read current resolution
I am using splitviewcontroller for my ipad application in which I need to capture
I need to change database and settings when my customers load the application (xap)
In my Spring 3.1 application, I sometime need to change the default behavior of
I am writing an application where you need to show login screen modally and
I need help figuring out how to change out the view in my application.
Right now, I have a full screen application which spawns several full screen JFrames
I'm testing a full-screen Flash application. My preference is to drive the process with
I am using Ninject for implementing IoC/DI in my application. It has been working
I need UIToolbar when my application launches. It will be on every screen through

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.