I can't get %LAPP to work

113 views
Skip to first unread message

mccoyn

unread,
Aug 28, 2010, 9:03:47 AM8/28/10
to Tasker
When I connect to my car bluetooth I want to restart the app that was
running the last time I disconnected. My plan is to store the value
of %LAPP when the bluetooth connected context exits and use that value
to decide what to start when I connect.

My problem is that I can't copy the value of %LAPP to another
variable. I used the variable set action but the value I got was
%LAPP. Is there some action I need before the %LAPP variable is
initialized?

Pent

unread,
Aug 28, 2010, 10:19:32 AM8/28/10
to Tasker
I wondered if anyone would ever use that :-)

Seems also not to work for me anymore, probably a victim of some
change or other in the last
6 months, will probably be able to fix it for next release.

Pent

Pent

unread,
Aug 29, 2010, 12:16:29 PM8/29/10
to Tasker
Turned out it was totally not working for several reasons :-)

Should be fixed for the next version, but it's not going to work on
Eclair
hope you're not on there still.

Pent

Peter Bechtold

unread,
Aug 30, 2010, 7:21:13 AM8/30/10
to Tasker
Ah, great, same accounts to me: %LAPP didn't work. Good to know that
it will be fixed. BR!

On 29 Aug., 18:16, Pent <tas...@dinglisch.net> wrote:
> > When I connect to my car bluetooth I want to restart the app that was
> > running the last time I disconnected.  My plan is to store the value
> > of %LAPPwhen the bluetooth connected context exits and use that value
> > to decide what to start when I connect.
>
> > My problem is that I can't copy the value of %LAPPto another
> > variable.  I used the variable set action but the value I got was
> > %LAPP.  Is there some action I need before the %LAPPvariable is

mccoyn

unread,
Aug 30, 2010, 10:03:53 AM8/30/10
to Tasker
Thanks,

I'll keep an eye out for the next release. I'm using a Droid, so it
shouldn't be a problem.

Chris

unread,
Oct 8, 2010, 2:27:16 AM10/8/10
to Tasker
Pent,

I'm on Eclair and also need to store a variable value for later use.
Is there any other way of doing this?

I am using variable values to manage my Bluetooth state since I have
overlapping contexts:
My baseline is Bluetooth off

When I leave my home zone BT turns on for 2 mins to be able to scan
for me getting into my car where it connects to my Car BT, then I have
a context for CAR where BT is kept on and a couple other contexts
that can overlap.
I was finding that my phone would crash when one profile was turning
on BT at the same time as another was turning it off so my solution
has been to use a variable %BLUETOOTH set to 0 as a baseline and then
use Variable add for enter tasks and variable subtract for exit tasks.
I then have a profile setting Bluetooth to on if %BLUETOOTH >0 this
way my chain of events will keep track of the baseline.

Since I only use my car BT for media I want to be able to dissable
Bluetooth during a call and then revert to whatever state it was in
before the call when done. For this I was planning on Saving the
%BLUETOOTH value in a temporary variable, setting %BLUETOOTH to 0 and
then as an exit to reset %BLUETOOTH to whatever the saved value was.

Is there a way to do this?


On Aug 29, 6:16 pm, Pent <tas...@dinglisch.net> wrote:
> > When I connect to my car bluetooth I want to restart the app that was
> > running the last time I disconnected.  My plan is tostorethevalue
> > of %LAPP when the bluetooth connected context exits and use thatvalue
> > to decide what to start when I connect.
>
> > My problem is that I can't copy thevalueof %LAPP to another
> >variable.  I used thevariableset action but thevalueI got was

Chris

unread,
Oct 8, 2010, 2:38:28 AM10/8/10
to Tasker
Never mind, I figured it out, by checking "Do Maths" it worked.
Reply all
Reply to author
Forward
0 new messages