• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Simple Task - Play sound when battery reaches 90%

bslow1

Lurker
Hey everyone and thanks for the help.

I'm sure this is a very simple Task for you experts out there, but for some reason, the way I think it should be done isn't working.

What I'm trying to do is set up a Task so that when the phone is plugged into the wall, AND the battery charges up to 90%, the phone plays a sound to notify me.

So what I did was:

Profile > State > Power > AC
Enter Task > Media > Play Ringtone
IF - %BATT = 90

Seems simple, but it doesn't work. As the phone charges, it shoots right past 90% without making a sound.

Am I missing something fundamental here?
 
It needs ...

Profile: Thom
State: Power [ Source:AC ]
State: Battery Level [ From:90 To:90 ]
Enter: Anon
A1: Say [ Text:90% Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]

... Thom
 
Awesome! Thank you! I guess I didn't realize that I needed two States to get it to work. And thanks to your instructions, now it speaks!
 
Back
Top Bottom