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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:32:54+00:00 2026-06-02T15:32:54+00:00

I set BatteryMonitoringEnabled to True before accessing the battery information. The documentation says that

  • 0

I set BatteryMonitoringEnabled to True before accessing the battery information.

The documentation says that -1 should be returned only if the monitoring hasn’t been enabled.

However, I always get -1 as the value of BatteryLevel property and Unknown as BatteryState, despite that I enabled the monitoring.

UIDevice.CurrentDevice.BatteryMonitoringEnabled=true;

Console.WriteLine (UIDevice.CurrentDevice.BatteryLevel.ToString());

Result -1

Console.WriteLine (UIDevice.CurrentDevice.BatteryState.ToString());

Result “Unknown”

Anything I’m missing 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-02T15:32:55+00:00Added an answer on June 2, 2026 at 3:32 pm

    This works for me. Could you be running this inside the iOS simulator ? If so what’s you’re observing would be normal results.

    If you cannot this to work please fill a bug report @ http://bugzilla.xamarin.com and state which version of MonoTouch, devices, iOS versions are in use.

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

Sidebar

Related Questions

i set up a simple personal page that shows some personal information of mine.
I set up the basic Authentication/Authorization set up, but a problem now is that
Does set,bag while cascading is used for Ilist or Iset only. What if the
I set up a hitcounter so that each time someone goes to my site,
set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m -server This argument works in run.bat of jboss but
I set views programmatically. Here is how I do that. Let's say I have
SET NOCOUNT ON stops the message that shows the count of the number of
set visible = true then message box show it is false delegate void LoadLastDeptSettingDelegate(String
I set for my DataGridView object AllowUserToOrderColumns = true; How can I detect columns
I set my editor use the whitespace only, but I got problem with the

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.