Phone.KeepAlive() bug in Phone Lib since B4A 1.2 ?

StepWalk

Member
Licensed User
Longtime User
In one of my apps I used the statement MyPhone.KeepAlive(true) so far - to keep it alive but allow for screen dimming. Now on B4A 1.2 I always get some runtime error message: "Illegal Argument Exeception on Line ..." However - if I change the boolean argument to False, no error message is shown. On B4A 1.1 I didn't see that behaving. My Phone Lib is V1.31
 
Alive Error Demo

Here is some bare bone app which demonstrates that error. Look at the Activity_Create Sub. The resulting runtime error message is included as screenshot in the ZIP archive. You may run that app on the emulator or on a real device - the error remains the same.
 

Attachments

I'm afraid that does not cause an error on my Orange San Francisco (ZTE Blade) nor on the emulator running Andorid 2.1.

I am trying your little app using Phone1.32 just posted by Erel.

EDIT :- I found a copy of Phone 1.31 and that's OK too.
 
Last edited:
PhoneLib 1.32 installed - problem solved

Thanks agraham for having a look at my issue which vanished with V1.32 Just for curiosity I reinstalled that obsolete V1.31 afterwards, and - lo and behold - that f%&§#ing message didn't return. Agraham, I swear, I had no drink today (yet). Please believe me...
 

Similar Threads

Back
Top