matszpk / native-boinc-for-android

Native BOINC client for android and boinc applications
39 stars 12 forks source link

Does the client respect battery settings? #7

Closed letharion closed 11 years ago

letharion commented 11 years ago

It looks to me like the client doesn't respect my settings to NOT run while on battery.

Could this somehow be a user error?

As far as I know, I have the setting as a global default, but I can't find a way in the application to confirm which settings it actually has, only that it seems to run even when on battery.

matszpk commented 11 years ago

Should do it. Are you checking battery settings for local preferences? Sometimes a boinc client (this version) can't detect battery. Check in the boinc logs (should be 'I found directory: .../battery' or similar). Battery detection will be improved later.

letharion commented 11 years ago

The battery detection appears to work well. I've been changing the settings around a bit to see what happens, and have had mixed results. I will need to be a bit more rigorous in my testing, because I haven't been able to conclude anything yet. Sometimes it appears to work, sometimes not.

letharion commented 11 years ago

Absolutely awesome work on this btw! :)

brovko commented 11 years ago

Nexus 10 tablet shows 'I can't detect battery!' And boinc client works even when 'While device is on battery' is off. I can install debug version if it's needed.

matszpk commented 11 years ago

To brovko: debug version is obsolete in this case. Debug version can be used to catch severe bugs such that segfaults, sigbus etc. Later, I will extends battery detection in a boinc client and adds fallback solution (via nativeboinc).