Check the level of phone battery + J2ME

i'm leaving in a developping country , i need to develop a midlet that will send an sms to somebody when the courant goes off , the midlet will be installed on a phone that will be permanently connected to a power outlet
My question is is it possible in J2ME to do such a thing( detect that the battery is not charging meaning that the courant went off and of course detect the contrary)
I'm a beginner in this stuff and I'm using netbeans 6.1 IDE

Battery level detection isn't a part of the standard API, but some manufacturers do have a proprietary API which facilitates this. Check out the developer area of the manufacturers' websites.
But AFAIK this will only give you the battery level, not whether it's charging or not.
db

Similar Messages

  • I recently got a an iPod 5 generation as a gift and while I was in my settings I turned on the voice over  to check the percentage of my battery, so I turned it off and now I can't unlock it. Even when scrolled my fingers on the screen and typed the pa

    I recently got a an iPod 5 generation as a gift    and while I was in my settings I turned on the voice over  to check the percentage of my battery, so I turned it off and now I can't unlock it. Even when scrolled my fingers on the screen and typed the password but it would unlock, please can some one help me with this

    You have the accessibility VoiceOver feature turned on.
    Triple click the home button and try going to Settings>General>Accessibility and turn VoiceOver off. You may have to use three fingers to scroll the screen to get there. If problems see the following for how to turn off via iTunes:
      iPhone: Configuring accessibility features (including VoiceOver and Zoom)

  • HT4310 I'm trying to check the status of my battery.  My shuffle is on, I'm pressing the voice over button twice, but I don't get any light at all.  What should I do?

    I'm trying to check the status of my battery.  My shuffle is on, I'm pressing the voice over button twice, but I don't get any light at all.  What should I do?

    Hi, Jenny.
    You may find this article helpful in troubleshooting your iPod shuffle.
    iPod shuffle
    http://www.apple.com/support/ipodshuffle/assistant/itunes/
    Regards,
    Jason H. 

  • Checking the model of Phone

    Hi
    I would like to know how I can check the model of my phone? On its case it only says Treo.
    Thanks.
    Post relates to: None

    Does your Treo have Windows mobile or Palm OS?
    To verify the model, take out the battery and look for the model on the sticker in the batery compartment. Do not look on the battery. It should say something like treo 680, 700W, etc.
    You can check the support page for smartphones on Palm.com and this may help ID the model you have. http://kb.palm.com/wps/portal/kb/na/deviceselector/page_en.html#NA%20Phones
    Click on your model, click on your carrier and the next page is the support page for your Treo. There you will find different tabs on the page, home, learn downloads, etc. On the learn tab under guides and more is the user guide.
    Message Edited by cygnusX1 on 01-18-2010 09:47 AM

  • How can i check the condition of my iphone 4 battery?

    Is there a way to check the condition of a battery in an iphone, to see the number of cycles and present capacity?

    there are some apps in the app store but it's all statistics
    a technology like batteries is soooo analogue the only thing the iphone have access to is
    the volt level the batt can currently provide

  • Tips For Choosing the Best Samsung Cell Phone Battery

    It is difficult to imagine the world would be like if you do not use a mobile phone! We have become so dependent on the use of Samsung mobile phones, we will be panic, if we mistakenly forgot at home. The Samsung mobile phone is a key part of most people's lives, and get them up every minute of friends, family and business partners.
    Taking into account a new Samsung mobile phone purchase, but also consider the Samsung mobile phone battery. Here are some suggestions to help.
    More standby time and talk time, you should choose a Samsung cell phone battery with high capacity. However, when you select a high-capacity Samsung mobile phone battery, there will be a heavier weight. A bigger Samsung cell phone battery, cell phones can not enter the cell phone pocket, or protectors. If you plan to travel a lot with the phone, which could lead to a problem, your phone may not be easy to carry.
    Select the Samsung cell phone battery, lower cost, and may not be the best choice, quality. Make sure you ask if you buy a new battery or refurbished one, which is a key issue! Tips to find a renovation is the incredibly cheap price. Refurbished batteries may have old parts, it may not work as effectively as a new battery.
    Buy a new battery, you get a guarantee that if you have any questions? Remember, some just do not work, as long as expected. Usually Samsung phone manufacturers will provide a new battery only when it is purchased in a specified amount of time.

    mtongy wrote:
    we will be panic, if we mistakenly forgot at home.
    i won't.

  • DBFS check audio level

    Can anyone tell me how I might be able to accurately check the level of my Audio within FCP 10.1.1 in dBFS and also how to ensure that when I complete a project that my exported (Pro Res 422) version is precisely that level. NB. I don't want to tamper with my audio in any respect (eg. with a Limiter or similar) as I intend making music video clips for broadcast and would prefer not to alter any of the dynamics of the mastered mixes, as well as being certian I am not exceedig the -10dBFS delivery standard required by our local television stations. Any help or suggestions will be much appreciated, have spent ages looking for answers to this.

    As a video editor of an advertising agency, and always making TVCs for TV stations, I totally understand your frustration when they insist the required audio level, and I was suffered with this problem badly.
    I ended up with not using the audio meter in both FCP 7 and X because they are simply not accurate, or probably even not measuring the things we need, instead, I use WAVES WLM Plus Loudness Meter plug in, and set it to the audio standard suits your station or country, like OP 58 in Australia, etc.
    www.waves.com/plugins/wlm-loudness-meter
    I hope this helps. Good luck.

  • My phone Battery level, (n97 mini)?

    Hi,
    I have a N97 mini and I have looked around but I don’t seem to find what my battery level is.
    I know about the indicator on the top left hand side, but that’s a very vague indicator.
    Is there a way of checking the battery level on the phone a little bit more accurately?
    Thanks
    FFMG

    You can download free battery utilities that should do that for you from www.ovi.com. There are a few of them there. Just select the ones that best suites your requirement and try it out.

  • IPhone 5 Battery stays at the same percentage, phone fades shows white and black lines then dies. Now phone screen is shaking and does the same thing.

    My iPhone 5 which has been working fine has only today started to get these problems. The phones battery percentage stays at the same number and only changes if i swith it off or when it does it byitself but then stays at that number. When I use it it constantly turns off by slowly fading then showing white and black lines then going off. The screen is now shaking and keeps turning off. It was on IOS 6 which I just updated as I thought this could be the issue but it still does the same thing on IOS 7. Has anyone else experienced these problems or know what is wrong with my iPhone?
    Please reply!

    Sounds like the device is failing. Since you updated to iOS 7, that would do the same as a restore. I would make an appointment at the Genius Bar at Apple to have the device checked.

  • My phone was 100% when i slept at midnight, when i woke up at 8 am in the morning my phone was dead and I had to charge the battery again .. this is the second time its happening to me. Is it normal or my phone is abnormal ?

    So I just got a 3 months Old iphone 4s which is still under warranty. I charged my phone to 100% last night before going to bed. When i woke up at 8 in the morning my phone was switched off and the battery was drained . This is ridiculous that I dint use my phone while i was asleep and the battery drained completely. Even though, Apple store replaced my battery with a new one. I had set alarm for 8è o clock and my phone had died and due to that i woke up at 8:40am.  I had turned off my location services, ping and even 3G to monitor the usage. Has any one been expeirencing this kind of problem ?
    I am so going to apple store today to get an replacement, this is ridiculous I cant wake up in the middle of the night to check if my phone has juice init to wake me up in the morning for the work. I have been using apple phones since 2008 and never came such problem . Please assist me as this phone is the main source of communicating with the rest of the world.

    Have you stopped the app running in multi tasking? To do this double click your home button, select and hold any app until it jiggles. Select the no entry sign to stop the app from running.

  • How can I check the percentage of my iPhone 5's original battery capacity?

    I'm wondering if there's any way I can check what the capacity of my iPhone 5's battery is compared to its original capacity.  I know Apple will replace the battery for free if it is under 50% of the original capacity since it's still covered under the one-year warranty but I'd rather know that's the case before I send it in and go without a phone for a week.

    A problem does exist; it takes significantly less time for me to deplete my battery now than it did when I bought my phone.  Please stop acting like this discussion is over just because you cannot answer my question.  I would like to seek the knowledge of other regarding ways to check my battery capacity.  I appreciate your suggestions, but I purchased an iPhone 5 because it was an upgrade to the iPhone 4 and it was supposed to have the same battery life.  However, 20 months after I purchased my iPhone 4 the battery still lasted longer than the battery in my 11 month old iPhone 5.  My warranty expires in a few weeks and I need to know now whether I should send it because once the warranty expires a battery replacement is going to set me back $80 plus shipping fees.

  • HT4528 About 30 minutes ago, my iphone 4 screen just went white. It still shows the time, signal and battery at the top, but everything else is white. I can't receive calls/text messages. My phone will not lock or turnoff,  but it will charge. HELP!!

    I don't know what to do. My iPhone 4 just all of a sudden had a blank white screen. It still shows the bar at the top with the signal, time, and battery life. But the rest of the screen is white. If I touch the screen it acts like it's selecting something and gives me the choice to "Copy". It will still charge when I plug it up, but i cannot turn it off or lock the screen. I tried leaving it alone for awhile to see if it will lock on its own, like it normally would, and all it does is dim the screen. I guess im going to try to just let it die, and then see what happens, but if anyone else has any suggestions (other than taking it in to be looked at or getting a new phone) I would greatly appreciate it!

    Any number of things could have caused the phone to do this. If after the reset you are experiencing additional problems, the next step in the troubleshooting process is a restore from a backup. Make sure you have one before you start the restore process. If that does not improve things, then you may have to restore as a new device. Remember, restoring as a new device will delete all data off the phone. Make sure all of your pictures are imported to the computer and all other data is synced to supported applications on the computer before restoring as new. See this support document about backups http://support.apple.com/kb/HT4946, and this about restoring the phone. http://support.apple.com/kb/HT1414

  • HT1871 Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Could it be because the SIM card got damaged while I cut it to fit the IPhone?
    Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
    Or somehow the Chinese carrier found out and locked it?
    No, which is not possible.
    What can I do? Get a new SIM and see if it works again?
    Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget.

  • How to check the current EHP stack level? in SAP

    Dear All,
    How to check the current EHP stack level? in SAP  . i have checked forum before i am posting but still comfused .
    same one said SAP_APPL , EA_Appl  and SAP _HR is 60n if n=1.2.3.4. if n =1 is enhanced package 1 similarly 2,3,4 .
    some one said SAP_BASIS 701,702,703,704 . according ehp1,2,3,4.
    Pls check the details and confirm either is ehp1 or ehp4 .
    Component version is simply shows SAP ECC 6.0 in system -> status.
    Software Component  - Release  - SP level
    SAP_ABA     701     0007
    SAP_BASIS     701     0007
    PI_BASIS     701     0007
    ST-PI     2008_1_700     0003
    SAP_BS_FND     701     0008
    SAP_BW     701     0007
    SAP_AP     700     0021
    WEBCUIF     700     0008
    SAP_APPL     604     0008
    SAP_HR     604     0029
    SAP_HRCAR     604     0029
    SAP_HRCAT     604     0029
    SAP_HRCAU     604     0029
    SAP_HRCBE     604     0029
    SAP_HRCBR     604     0029
    SAP_HRCCA     604     0029
    SAP_HRCCH     604     0029
    SAP_HRCCL     604     0029
    SAP_HRCCN     604     0029
    SAP_HRCDE     604     0029
    SAP_HRCDK     604     0029
    SAP_HRCES     604     0029
    SAP_HRCFI     604     0029
    SAP_HRCFR     604     0029
    SAP_HRCGB     604     0031
    SAP_HRCHK     604     0029
    SAP_HRCID     604     0029
    SAP_HRCIE     604     0029
    SAP_HRCIN     604     0029
    SAP_HRCIT     604     0029
    SAP_HRCJP     604     0029
    SAP_HRCKR     604     0029
    SAP_HRCMX     604     0029
    SAP_HRCMY     604     0029
    SAP_HRCNL     604     0029
    SAP_HRCNO     604     0029
    SAP_HRCNZ     604     0029
    SAP_HRCPH     604     0029
    SAP_HRCPT     604     0029
    SAP_HRCRU     604     0029
    SAP_HRCSE     604     0029
    SAP_HRCSG     604     0029
    SAP_HRCTH     604     0029
    SAP_HRCTW     604     0029
    SAP_HRCUN     604     0029
    SAP_HRCUS     604     0029
    SAP_HRCVE     604     0029
    SAP_HRCZA     604     0029
    SAP_HRGXX     604     0029
    SAP_HRRXX     604     0029
    EA-IPPE     400     0018
    EA-APPL     604     0008
    EA-DFPS     600     0018
    EA-FINSERV     604     0007
    EA-GLTRADE     604     0008
    EA-HR     604     0029
    EA-HRCAR     604     0029
    EA-HRCAT     604     0029
    EA-HRCAU     604     0029
    EA-HRCBE     604     0029
    EA-HRCBR     604     0029
    EA-HRCCA     604     0029
    EA-HRCCH     604     0029
    EA-HRCCN     604     0029
    EA-HRCDE     604     0029
    EA-HRCDK     604     0029
    EA-HRCES     604     0029
    EA-HRCFI     604     0029
    EA-HRCFR     604     0029
    EA-HRCGB     604     0029
    EA-HRCHK     604     0029
    EA-HRCID     604     0029
    EA-HRCIE     604     0029
    EA-HRCIN     604     0029
    EA-HRCIT     604     0029
    EA-HRCJP     604     0029
    EA-HRCKR     604     0029
    EA-HRCMX     604     0029
    EA-HRCMY     604     0029
    EA-HRCNL     604     0029
    EA-HRCNO     604     0029
    EA-HRCNZ     604     0029
    EA-HRCPH     604     0029
    EA-HRCPT     604     0029
    EA-HRCRU     604     0029
    EA-HRCSE     604     0029
    EA-HRCSG     604     0029
    EA-HRCTH     604     0029
    EA-HRCTW     604     0029
    EA-HRCUN     604     0029
    EA-HRCUS     604     0029
    EA-HRCVE     604     0029
    EA-HRCZA     604     0029
    EA-HRGXX     604     0029
    EA-HRRXX     604     0029
    EA-PS     604     0007
    EA-RETAIL     604     0007
    FINBASIS     604     0008
    ECC-DIMP     600     0018
    ERECRUIT     604     0008
    FI-CA     604     0008
    FI-CAX     604     0007
    INSURANCE     600     0018
    IS-CWM     600     0018
    IS-H     600     0024
    IS-M     600     0018
    IS-OIL     600     0018
    IS-PS-CA     604     0007
    IS-UT     600     0018
    LSOFE     600     0018
    SEM-BW     604     0008
    ST-A/PI     01M_ECC600     0001
    Regards
    Edited by: satheesh0812 on Nov 17, 2011 7:57 AM

    Hi Sateesh,
    SAP_ABA 701 0007
    SAP_BASIS 701 0007
    PI_BASIS 701 0007
    ST-PI 2008_1_700 0003
    SAP_BS_FND 701 0008
    SAP_BW 701 0007
    SAP_AP 700 0021
    WEBCUIF 700 0008
    SAP_APPL 604 0008
    Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
    EHP4 is derived from your component SAP_APPL 604.
    In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
    Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
    Hope this answers your query.
    Regards,
    Deepak Kori

  • How to check the validation at data base level as well as current user ente

    Dear all
    i have creation page in that item code will not enter the duplicate values
    in that creation page contains advanced table
    user will click on create 15 blank records using add another row
    suppose in first row user will enter LAPTOP assume this item code
    in this case i need to raise exception through databse level
    in second row also user enter LAPTOP1 in this case exception will not raise becaause data is not there at databse
    in third row user will enter LAPTOP1 in this case item is not there in data base but it is there in second row in this case
    i need to raise exception
    how to achieve this
    Thanks in Advance
    Sreekanth

    You can validate this in form submission.
    1. Call a method in AMImpl.java
    2. loop the ViewObjects and check the values
    3. If you find a match, throw the error
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for