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