Android Battery Lib, Java FFI example
-
- Posts: 626
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Android Battery Lib, Java FFI example
I set up a git hub project based on the Android Battery Lib example from Ali Loyd's blog post https://livecode.com/livecode-9-0-dp-6- ... e-preview/
I added a few more functions, but some of them may not be working properly. The voltage & technology functions are not returning info on my device (Galaxy Note 5, Android 7.0), but the others are working fine.
https://github.com/PaulMcClernan/LCAndroidBatteryLib
I added a few more functions, but some of them may not be working properly. The voltage & technology functions are not returning info on my device (Galaxy Note 5, Android 7.0), but the others are working fine.
https://github.com/PaulMcClernan/LCAndroidBatteryLib
Re: Android Battery Lib, Java FFI example
Hi Paul,
Do you have an APK that we could install in our Android device?
Al
Do you have an APK that we could install in our Android device?
Al
-
- Posts: 626
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Android Battery Lib, Java FFI example
Well I could upload my .apk build I guess, but I don't see the point in doing that.capellan wrote:Hi Paul,
Do you have an APK that we could install in our Android device?
Al
There is a stack in my repo called GetBatteryTest.livecode that I used to build a test .apk from.
More importantly you need to build the battery lib extension from LCAndroidBatteryLibExp.lcb to include in the test .apk first.
Re: Android Battery Lib, Java FFI example
At least in my own case, my Linux computer (that compile
Android Apps) is out of service until new RAM memory
arrives from an online store...
Android Apps) is out of service until new RAM memory
arrives from an online store...
-
- VIP Livecode Opensource Backer
- Posts: 9823
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Android Battery Lib, Java FFI example
I know your pain, Alejandro. It's happened to me before. If it's not RAM it's hard drives. Hang in there, and maybe catch up on some old movies while you're waiting for the chips to arrive.capellan wrote:At least in my own case, my Linux computer (that compile
Android Apps) is out of service until new RAM memory
arrives from an online store...
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 626
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Android Battery Lib, Java FFI example
OK I uploaded my test apk to the git repo
I haven't worked on this again since.
Two functions, GetBatteryTechnology() & GetBatteryVoltage() don't seem to work and return nothing on my phone.
I haven't worked on this again since.
Two functions, GetBatteryTechnology() & GetBatteryVoltage() don't seem to work and return nothing on my phone.
Re: Android Battery Lib, Java FFI example
@ Paul, Many Thanks for posting this APK! I downloaded it and try to install.
Which Android version requires this apk?
@ Richard, Patience is my best friend!
Al
Which Android version requires this apk?
@ Richard, Patience is my best friend!
Al
-
- Posts: 626
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Android Battery Lib, Java FFI example
Oh I think I had it set for Android 5 due to having problems at first, it should probably be changed back to 4 as I don't think 5 was actually needed.capellan wrote:@ Paul, Many Thanks for posting this APK! I downloaded it and try to install.
Which Android version requires this apk?
@ Richard, Patience is my best friend!
Al
-
- Posts: 626
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Android Battery Lib, Java FFI example
Uploaded Android 4 version to GitHub:
Get Battery Tests ICS.apk
Get Battery Tests ICS.apk