User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: Help with Android Battery Percentage?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Help with Android Battery Percentage?

    Build 292.14 @ Android 29 Target 9

    I am not sure what is going on, but all of a sudden. I can no longer Read the Battery Percentage, using the same code I have used before.

    Set counter to Battery Percentage ( " Android Object " )

    I have the Battery_Stats Permission checked too.

    Using both a String and the Counter Object separately, both show the same result of -1

    Any help with this will be appreciated. Thanks!
    @Fernando

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I just changed the code a bit to see if any information was being sent by the Android Object and nothing is reading.

    Battery Plugged in = No information in string
    Battery Charging = No information in string
    Battery Discharging = No information in string
    Battery is Full = No information in string

    Each string should say what is happening, but I get nothing. No effect. The counter also is still showing -1.

    I also checked every permission there is to see if there is any change. There is no change. I still get -1.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    I just Copied and pasted code from a Working Released app on Google Play that gives the Battery percentage and it still does not work on this app I am working on now.

    I can't even begin to figure this out. I tried, reinstalling MMF2.5 DEV 292.14. No effect.
    I tried reinstalling the latest Android object. No effect.

    I still get -1 as a Value from the Android Object.

    What is going on?

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,592
    Mentioned
    268 Post(s)
    Tagged
    4 Thread(s)
    Did you add the permission for this

    BATTERY_STATS
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    Did you add the permission for this

    BATTERY_STATS
    Yup. I added that first. Then just to make sure. I added every permission there is. Still nothing.

    I also tested it on multiple devices. Nothing.

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,592
    Mentioned
    268 Post(s)
    Tagged
    4 Thread(s)
    I will check possible bug on a recent changes when starting the application, if i have a new runtime i will let you know for testing
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    I will check possible bug on a recent changes when starting the application, if i have a new runtime i will let you know for testing
    Ugh. Now I can't even build an APK.

    Why is MMF2.5, so buggy all the time. I had MMF2.0 for years with no issues. Now every other week, MMF2.5 is having another problem.
    First Android Object stopped working today. Now MMF2.5 can't build an apk anymore.

    I'm about to just do a fresh install, however I know that is another week of downloading patches and updates / dealing with errors to get it running again.

    Latest issue that just popped up today.

    MMF25Problemsasalways.jpg

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    I will check possible bug on a recent changes when starting the application, if i have a new runtime i will let you know for testing
    Thanks, however I can no longer build apks for some reason now.
    MMF25Problemsasalways.jpg

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,592
    Mentioned
    268 Post(s)
    Tagged
    4 Thread(s)
    this error first time i see

    if you have antivirus can you see the quarantine?

    i will send you a link by PM for teh battery issue
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    VBEinc's Avatar
    Join Date
    Oct 2015
    Posts
    192
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    this error first time i see

    if you have antivirus can you see the quarantine?

    i will send you a link by PM for teh battery issue

    I don't run an Antivirus. Typically they cause more issues then not.

    Java, did try to update automatically this morning. I stopped the update. I'm kinda wondering if it caused all these problems.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Android 9 option "adaptive battery" makes Fusion apps to lag
    By Dobermann in forum Android Export Module 2.5
    Replies: 13
    Last Post: 9th May 2019, 01:28 PM
  2. Battery level on mobile?
    By gagegage926 in forum Fusion 2.5
    Replies: 2
    Last Post: 2nd June 2014, 11:19 PM
  3. battery bar thing
    By TheCrimsonTaco in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 6th June 2012, 10:31 PM
  4. Retrieve Battery State
    By Spryz in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th April 2011, 10:25 PM
  5. Getting Battery Life
    By KingToast in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 5th January 2011, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •